I have created fields technically using AL in "Payment Journal" named as "Total WHT Amount" and "WHT Bal. No". The field "WHT Bal. No" has a table relation with "G/L Account" table and is getting the "No." of the table. I have functionally created an account named "WHT and other" (No. = 24250) in "Chart of Accounts" list page(Table: G/L Account). For this specific account, I have created a field "Remaining Balance" in which I want to get the "Total WHT Amount" from the "Payment Journal" after posting the invoice by using the "POST" action. "WHT Bal. No" in "Payment Journal" and "No." in "Chart of Accounts" are the same so I have built a conditional statement between these two for getting the value but it isn't working. Below are the screenshots attached. Kindly help me with this issue.



