
Hi Guys
I have created a page that displays each sales order line and want to display the on-hand quantity of the sales order line warehouse. So created a function but the SUM formula for quantity is not working - below try to lookup item Ledger Entry table and get on hand qty:
You have to do calcsums as a single line and then the field is set with the value so you can then assign it to a variable so like this:
vItemLedger.calcsums(quantity);
OnHandLineWH := vItemLedger.quantity;
Calcsums returns a Boolean value when used with a variable directly. Like above will get you the decimal