$LIENS

Hello,

I would like to have a calculated field in SOH4.

SUM QTY of all the lines in SORDERQ which has the same PJTNUM (opportunity).

Not only the lines on the screen. I would like to Sum all the lines from all the Sales Orders.

I need to do same with SDELIVERYD.

It is to calculate the Balance contract on each line of SOH4. PJTNUM is our contract number. So we know after picking if we are inside *positive balance or outside *negative balance contract.

I think I need Liens or Style. I saw some example on sagecity. But I don't understand it really.

Any help would be appreciated.