mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +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:
|
||||
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"
|
||||
else:
|
||||
party_type = "supplier"
|
||||
|
||||
Reference in New Issue
Block a user