[fix] Purchase Receipt: Show row no. against the Rejected Warehouse mandatory error

This commit is contained in:
Anand Doshi 2016-01-04 13:16:09 +05:30
parent c1e1026486
commit aee8b5bcad

View File

@ -99,7 +99,7 @@ class PurchaseReceipt(BuyingController):
if flt(d.rejected_qty) and not d.rejected_warehouse:
d.rejected_warehouse = self.rejected_warehouse
if not d.rejected_warehouse:
frappe.throw(_("Rejected Warehouse is mandatory against regected item"))
frappe.throw(_("Row #{0}: Rejected Warehouse is mandatory against rejected Item {1}").format(d.idx, d.item_code))
# validate accepted and rejected qty
def validate_accepted_rejected_qty(self):