chore: Instantiate variable unconditionally
This commit is contained in:
parent
88ac519b24
commit
300e812a1f
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user