Skip to Content
0
Former Member
Jan 17, 2012 at 06:20 PM

Script logic Suggestion Needed

34 Views

HEllo, I have a requirement that when Account 123 is one of the accounts in a specific journal entry, create a new record a new datasrc for both credit and debit entry. e.g.

Account 123 - Debit 150 datasrc=pca

Account 789- Credit 150 datasrc=pca

now the script logic needs to check if one of the accounts is 123, then create two new records with datasrc TMPADJ

Account 123 - debit 150 datasrc=tmpadj

account 789 credit 150 datasrc=tmpadj

If I just put a when statemetn

*WHEN ACCOUNT

*IS 123

*REC(EXPRESSION=%VALUE%,DATASRC=TMPADJ)

*ENDWHEN

*COMMIT

If I did it this way it will only create tmpadj record for account 123 record. How do I accomplish my requirement?

Thanks.