mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Merge pull request #4254 from nabinhait/pr_qty
[fix] Consider Rejected Qty for Qty validation in Purchase Receipt
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user