remaining qty only considers submitted invoices now.

This commit is contained in:
Gopi Katwala 2019-07-16 20:23:27 -04:00
parent 66fe4c6bd0
commit 818bf35e9f

View File

@ -773,7 +773,7 @@ and invoice_detail.po_line_item_num = item_no_in
and po_detail.PO_num = po_no
and invoice.PO_num = po_detail.PO_num
and invoice.inv_no = invoice_detail.inv_num
and (invoice.inv_status = 2 OR invoice.inv_status = 1)
and invoice.inv_status = 2
and invoice_detail.po_line_item_num = po_detail.line_item_no;
update po_detail set remaining_qty = rem_qty where PO_num = po_no and line_item_no = item_no_in;