Hi,
I want to prevent bank overdraft during posting thru code in this way,
If BankAcc.Balance < BankAcc.MinBalance THEN
ERROR('AAA');
where BankAcc = Record of Bank Account Table.
Where do i need to write code.(which codeunit).Plz help.
If you are posting payments via the Purchase Payments Journal, you could keep a tally of the total for the bank and check when posting and calling codeunit Gen. Jnl.-Post.
Check Form 345 which is the Reconcilliation before posting, there is some code there that may help.
Experience is what you get when you hoped to get money
Comments
Check Form 345 which is the Reconcilliation before posting, there is some code there that may help.