From 7d288437d8a119712dad5067f40c008648420736 Mon Sep 17 00:00:00 2001 From: deepeshgarg007 Date: Mon, 19 Aug 2019 16:19:48 +0530 Subject: [PATCH] fix: Assignment --- erpnext/controllers/sales_and_purchase_return.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/controllers/sales_and_purchase_return.py b/erpnext/controllers/sales_and_purchase_return.py index 6a03c519ef9..cb68315f9b0 100644 --- a/erpnext/controllers/sales_and_purchase_return.py +++ b/erpnext/controllers/sales_and_purchase_return.py @@ -25,9 +25,9 @@ def validate_return_against(doc): ref_doc = frappe.get_doc(doc.doctype, doc.return_against) if doc.doctype == "Sales Invoice": - party_type == "customer" + party_type = "customer" 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: # validate posting date time