How to transfer custom field amount to the right G/L account (Chart of Account)

Hi I would like to send the custom field amount (Allowance) [as the blue box in the image] to the bal. account allowance [50113]. May I know is there any event that I can subscribe or any custom code that I can use?

beaxxm59v079.png

I’ve tried using the method in base app but it doesn’t work.