cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Correct work of Journal.lgf

Former Member
0 Likes
259

Hello, colleguas!

We use Journal.lgf.

So, when we post the Journal, the logic runs and we see the right changes in data. But when we unpost the Journal, we see changes in data of journals restrictions only.The logic doesn't running for unpost of the journal. Is it correct work of journal.lgf?

What logic I can use to change data the way I need?

Best regads,

Thank you very much for your help,

Olga.

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Likes

Hi Olga,

You have strange expectations

Journal.lgf, same as default.lgf work with values AFTER save to db!

If you want script to correctly work on unpost you have to use 3 accounts - not 2

Like: A,B,C and script will calculate C = B - A

*WHEN ACCOUNT

*IS A

*REC(EXPRESSION=[ACCOUNT].[B] - %VALUE%,ACCOUNT=C)

*ENDWHEN

*WHEN ACCOUNT

*IS B

*REC(EXPRESSION=%VALUE%-[ACCOUNT].[A],ACCOUNT=C)

*ENDWHEN

Vadim

Answers (0)