jchewsmith
Technical User
I am updating the post I just submitted. I use the following do while to get a rcptqty result, then I use that * a sell price to get a sell price per item. I want to get a grand total for all item sell prices.
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;