Merge pull request #4254 from nabinhait/pr_qty
[fix] Consider Rejected Qty for Qty validation in Purchase Receipt
This commit is contained in:
commit
5a90e3b2e9
@ -42,6 +42,8 @@ class PurchaseCommon(BuyingController):
|
|||||||
items = []
|
items = []
|
||||||
for d in obj.get("items"):
|
for d in obj.get("items"):
|
||||||
if not d.qty:
|
if not d.qty:
|
||||||
|
if obj.doctype == "Purchase Receipt" and d.rejected_qty:
|
||||||
|
continue
|
||||||
frappe.throw(_("Please enter quantity for Item {0}").format(d.item_code))
|
frappe.throw(_("Please enter quantity for Item {0}").format(d.item_code))
|
||||||
|
|
||||||
# udpate with latest quantities
|
# udpate with latest quantities
|
||||||
|
Loading…
x
Reference in New Issue
Block a user