fix: Check for return against delivery noteas well

This commit is contained in:
deepeshgarg007 2019-08-19 16:38:04 +05:30
parent 7d288437d8
commit e2acc748c8

View File

@ -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"