fix: Assignment

This commit is contained in:
deepeshgarg007
2019-08-19 16:19:48 +05:30
parent c80e5fe7a1
commit 7d288437d8

View File

@@ -25,9 +25,9 @@ def validate_return_against(doc):
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 == "Sales Invoice":
party_type == "customer" party_type = "customer"
else: else:
party_type == "supplier" party_type = "supplier"
if ref_doc.company == doc.company and ref_doc.get(pary_type) == doc.get(party_type) and ref_doc.docstatus == 1: if ref_doc.company == doc.company and ref_doc.get(pary_type) == doc.get(party_type) and ref_doc.docstatus == 1:
# validate posting date time # validate posting date time