[fix] Consider Rejected Qty for Qty validation in Purchase Receipt

This commit is contained in:
Nabin Hait 2015-10-29 14:54:22 +05:30
parent 32e48bb568
commit f9a974385a

View File

@ -42,6 +42,8 @@ class PurchaseCommon(BuyingController):
items = []
for d in obj.get("items"):
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))
# udpate with latest quantities