Update set_missing_title_for_quotation.py

This commit is contained in:
Nabin Hait
2019-05-02 16:00:49 +05:30
committed by GitHub
parent 625191d20a
commit 75b63c5b4c

View File

@@ -1,7 +1,7 @@
import frappe import frappe
def execute(): def execute():
'''update customer_name from Customer document if quotation_to is set to Customer ''' # update customer_name from Customer document if quotation_to is set to Customer
frappe.db.sql(''' frappe.db.sql('''
update tabQuotation, tabCustomer update tabQuotation, tabCustomer
set set
@@ -13,7 +13,7 @@ def execute():
and tabQuotation.quotation_to = 'Customer' and tabQuotation.quotation_to = 'Customer'
''') ''')
'''update customer_name from Lead document if quotation_to is set to Lead ''' # update customer_name from Lead document if quotation_to is set to Lead
frappe.db.sql(''' frappe.db.sql('''
update tabQuotation, tabLead update tabQuotation, tabLead