mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-18 00:55:02 +00:00
chore: Instantiate variable unconditionally
(cherry picked from commit 300e812a1f)
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user