Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all articles
Browse latest Browse all 11285

Forum Post: RE: Get all invoice from another set

$
0
0
Cust.RESET; Cust.SETRANGE(Cust.Blocked,Cust.Blocked::" "); SalesInvoiceHead2.RESET; SalesInvoiceHead2.SETFILTER("No. Printed",'>%1',0); IF Cust.FIND('-') THEN BEGIN REPEAT SalesInvoiceHead2.SETRANGE("Sell-to Customer No.",Cust."No."); UNTIL Cust.NEXT = 0; END; Rec.COPY(SalesInvoiceHead2); CurrPage.UPDATE(FALSE); I modified the code and add the REPEAT LOOP however after excute the page set a filter on it and only show the last customer invoice. where am I getting wrong with this program ?

Viewing all articles
Browse latest Browse all 11285

Trending Articles