mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
[purchase order] tests pass
This commit is contained in:
@@ -68,6 +68,12 @@ class DocType(BuyingController):
|
||||
msgprint("Rejected Warehouse is necessary if there are rejections.")
|
||||
raise Exception
|
||||
|
||||
if not flt(d.qty) and flt(d.rejected_qty):
|
||||
d.qty = flt(d.received_qty) - flt(d.rejected_qty)
|
||||
|
||||
elif not flt(d.rejected_qty):
|
||||
d.rejected_qty = flt(d.received_qty) - flt(d.qty)
|
||||
|
||||
# Check Received Qty = Accepted Qty + Rejected Qty
|
||||
if ((flt(d.qty) + flt(d.rejected_qty)) != flt(d.received_qty)):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user