all purchase lines coming from order to invoice

lavanyaballurgilavanyaballurgi Member Posts: 235
Hello experts,

I checked in Cronus & it looks same that if I have 10 lines in purchase order & do "Receive & invoice" for only 5 of them still in posted purchase invoice it shows all 10 lines.
What would be the best way to make posted purchase invoice shows only those lines which were filled for "Qty to receive" & "Qty to invoice" in Purchase order?

Answers

  • vijay_gvijay_g Member Posts: 884
    Add this code before insert invoice line and receipt line in CU 90.
    IF PurchRcptLine.Quantity <> 0 THEN
              PurchRcptLine.INSERT;
    
              IF PurchInvLine.Quantity <> 0 THEN
              PurchInvLine.INSERT;
    
Sign In or Register to comment.