My business is that after consolidation customer want to post manual entries that effect the expense and the account payable so if he posted this entry without telling the system to effect the (Retained earning F10) with the increase in expense The Balance sheet will not be balanced there will be a difference
so what i needed from the above script is to effect the profit for the year which is 000210000201 by any changes happened on EXP and INC
but my problem is
It seems that the logic script when i post 2 Entries it duplicate the first 1
Example
I have posted the entry A
so the logic script effect the balance sheet by the entry A
then i post entry B so the logic script effect the balance sheet by A again and then B
so how the make the Logic script just effect the balance sheet by only new entries ?