jchewsmith
Technical User
I am using the following formula to calculate a sell price per item. Is there a way to get a grand total for the sell price of all items?
global numbervar newitems;
global numberVar items;
global numbervar remain;
WhilePrintingRecords;
If {SS_MFGRcptbyJob.MRJobRcptQty} > items then remain:= items
else if {SS_MFGRcptbyJob.MRJobRcptQty} <= items then remain:={SS_MFGRcptbyJob.MRJobRcptQty};
items:=items-remain;
newitems:=remain;
global numbervar newitems;
global numberVar items;
global numbervar remain;
WhilePrintingRecords;
If {SS_MFGRcptbyJob.MRJobRcptQty} > items then remain:= items
else if {SS_MFGRcptbyJob.MRJobRcptQty} <= items then remain:={SS_MFGRcptbyJob.MRJobRcptQty};
items:=items-remain;
newitems:=remain;