mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
[fix] Purchase Return warehouse validation
This commit is contained in:
@@ -97,7 +97,7 @@ def validate_returned_items(doc):
|
|||||||
frappe.throw(_("Row # {0}: Serial No {1} does not match with {2} {3}")
|
frappe.throw(_("Row # {0}: Serial No {1} does not match with {2} {3}")
|
||||||
.format(d.idx, s, doc.doctype, doc.return_against))
|
.format(d.idx, s, doc.doctype, doc.return_against))
|
||||||
|
|
||||||
if not d.warehouse:
|
if doc.doctype != "Purchase Invoice" and not d.get("warehouse"):
|
||||||
frappe.throw(_("Warehouse is mandatory"))
|
frappe.throw(_("Warehouse is mandatory"))
|
||||||
|
|
||||||
items_returned = True
|
items_returned = True
|
||||||
|
|||||||
Reference in New Issue
Block a user