mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
fix: Check for return against delivery noteas well
This commit is contained in:
@@ -24,7 +24,7 @@ def validate_return_against(doc):
|
|||||||
else:
|
else:
|
||||||
ref_doc = frappe.get_doc(doc.doctype, doc.return_against)
|
ref_doc = frappe.get_doc(doc.doctype, doc.return_against)
|
||||||
|
|
||||||
if doc.doctype == "Sales Invoice":
|
if doc.doctype in ("Sales Invoice", "Delivery Note"):
|
||||||
party_type = "customer"
|
party_type = "customer"
|
||||||
else:
|
else:
|
||||||
party_type = "supplier"
|
party_type = "supplier"
|
||||||
|
|||||||
Reference in New Issue
Block a user