chore: Instantiate variable unconditionally

This commit is contained in:
marination 2022-07-08 15:38:44 +05:30
parent 88ac519b24
commit 300e812a1f

View File

@ -181,6 +181,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"]