chore: Instantiate variable unconditionally

(cherry picked from commit 300e812a1f)
This commit is contained in:
marination
2022-07-08 15:38:44 +05:30
committed by Mergify
parent b0e17dea2a
commit b331c462ef

View File

@@ -182,6 +182,7 @@ class RequestforQuotation(BuyingController):
doc_args.update({"supplier": data.get("supplier"), "supplier_name": data.get("supplier_name")})
# Get Contact Full Name
supplier_name = None
if data.get("contact"):
contact_name = frappe.db.get_value(
"Contact", data.get("contact"), ["first_name", "middle_name", "last_name"]