Hi,
I want to add the values together from the 'Amount' fields in each of my purchase lines.
How do I do this?
Thanks!
*This post is locked for comments
Hi,
I want to add the values together from the 'Amount' fields in each of my purchase lines.
How do I do this?
Thanks!
*This post is locked for comments
make it
ReceivedNotInvoiced := ReceivedNotInvoiced + PurchaseLine."Amount";
and
IF ReceivedNotInvoiced <> 0 then
MESSAGE('My Received Not Invoiced Amount is %1.',ReceivedNotInvoiced);
Hi Mohana,
Thanks for replying.
Thats pretty much what I have:
IF PurchaseLine.FINDSET THEN
REPEAT
ReceivedNotInvoiced := PurchaseLine."Amount";
UNTIL PurchaseLine.NEXT = 0;
MESSAGE('My Received Not Invoiced Amount is %1.',ReceivedNotInvoiced);
Will this work?
where do you want to do it?
if it is in codeunits etc then I would declare a Purchase Line record variable and loop through all the records as per the requirement and calculate in a global decimal variable.