Hi
In the below Code how SetFilter works. Do i need to define SLine as Array or it will work perfectly.
Sale Invoice Line - OnAfterGetRecord()
Qty := 0;
SILine.SETFILTER("Document No.",'%1',"No.");
SILine.SETFILTER(SILine."Posting Date" , '<%1' , AsDate);
IF SILine.FINDFIRST THEN REPEAT
Qty += SILine.Quantity;
UNTIL SILine.NEXT=0;
Thanks
*This post is locked for comments
I have the same question (0)