Notifications
Announcements
No record found.
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
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.
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?
make it
ReceivedNotInvoiced := ReceivedNotInvoiced + PurchaseLine."Amount";
and
IF ReceivedNotInvoiced <> 0 then
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.