mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 14:55:13 +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}")
|
||||
.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"))
|
||||
|
||||
items_returned = True
|
||||
|
||||
Reference in New Issue
Block a user