Skip to Content
0
Former Member
Dec 04, 2008 at 08:11 AM

Deduction maths in script logic

23 Views

Hi,

i have a business process that goes as follow:

total variable overhead + fixed overhead = total overhead

total overhead - depreciation = factory overhead

in my script logic, i have the following (please don't mind the spaces in the account dimension)

*xdim_memberset account = total variable overhead, fixed overhead, depreciation

*when account

*is total variable overhead, fixed overhead

*rec (account = "total overhead")

*rec (account = "factory overhead", expression = (get(account="variable overhead") + get(account="fixedoverhead") - get(account="depreciation")))

*endwhen

the second *rec doesn't work, any idea on how to rectify this deduction situation?

cheers