I am running a report based on Purch. Inv. Header and I want to include the status of each invoice. I got the following code but what else I need to do
VendorLedgerEntry.SETFILTER("Vendor No.","Purch. Inv. Header"."Buy-from Vendor No.");
VendorLedgerEntry.SETFILTER("Document No.","Purch. Inv. Header"."No.");
0
Comments
So, all you need is: Note also that Purch. Invoices are posted to the "Pay-to Vendor", not the "Buy-from Vendor"...
I used the setcurrentkey and setrange as you said but the how do I assign the value from VendorLedgerEntry.Open current record to a variable. The status on each invoice will be printed too.
Paco