fix: Indentation and removed f-strings
- Sider: fixed indentation in js - Dont use f-strings in queries
This commit is contained in:
parent
2a3ef03388
commit
7b78473da3
@ -104,7 +104,7 @@ class Supplier(TransactionBase):
|
||||
|
||||
def on_trash(self):
|
||||
if self.supplier_primary_contact:
|
||||
frappe.db.sql(f"""
|
||||
frappe.db.sql("""
|
||||
UPDATE `tabSupplier`
|
||||
SET
|
||||
supplier_primary_contact=null,
|
||||
@ -112,7 +112,7 @@ class Supplier(TransactionBase):
|
||||
mobile_no=null,
|
||||
email_id=null,
|
||||
primary_address=null
|
||||
WHERE name='{self.name}'""")
|
||||
WHERE name=%(name)s""", {"name": self.name})
|
||||
|
||||
delete_contact_and_address('Supplier', self.name)
|
||||
|
||||
|
@ -69,7 +69,8 @@ frappe.ui.form.SupplierQuickEntryForm = class SupplierQuickEntryForm extends fra
|
||||
fieldname: "country",
|
||||
fieldtype: "Link",
|
||||
options: "Country"
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
return variant_fields;
|
||||
}
|
||||
|
@ -252,7 +252,7 @@ class Customer(TransactionBase):
|
||||
|
||||
def on_trash(self):
|
||||
if self.customer_primary_contact:
|
||||
frappe.db.sql(f"""
|
||||
frappe.db.sql("""
|
||||
UPDATE `tabCustomer`
|
||||
SET
|
||||
customer_primary_contact=null,
|
||||
@ -260,7 +260,7 @@ class Customer(TransactionBase):
|
||||
mobile_no=null,
|
||||
email_id=null,
|
||||
primary_address=null
|
||||
WHERE name='{self.name}'""")
|
||||
WHERE name=%(name)s""", {"name": self.name})
|
||||
|
||||
delete_contact_and_address('Customer', self.name)
|
||||
if self.lead_name:
|
||||
|
Loading…
x
Reference in New Issue
Block a user