Hi Vadim
I did exactly what u told me
i simplified the process as much as possible and that's what i found
the script logic when i post the first journal A = 200
it use the 200 correctly and post it to the Gl 000210000201 = 200
but when i post the second journal B =300
it use the 300 and post it to Gl 000210000201 =300 with out summation 200+300
it suppose to be 500 but it just erase the old value (200) and post the new value 300
so how to make the logic sum new values with old values