mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +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")})
|
doc_args.update({"supplier": data.get("supplier"), "supplier_name": data.get("supplier_name")})
|
||||||
|
|
||||||
# Get Contact Full Name
|
# Get Contact Full Name
|
||||||
|
supplier_name = None
|
||||||
if data.get("contact"):
|
if data.get("contact"):
|
||||||
contact_name = frappe.db.get_value(
|
contact_name = frappe.db.get_value(
|
||||||
"Contact", data.get("contact"), ["first_name", "middle_name", "last_name"]
|
"Contact", data.get("contact"), ["first_name", "middle_name", "last_name"]
|
||||||
|
|||||||
Reference in New Issue
Block a user