mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
[quotation][improvement] when made from lead
This commit is contained in:
15
patches/april_2013/p03_fixes_for_lead_in_quotation.py
Normal file
15
patches/april_2013/p03_fixes_for_lead_in_quotation.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import webnotes
|
||||
def execute():
|
||||
webnotes.conn.sql("""update `tabQuotation` set customer_name = organization
|
||||
where quotation_to = 'Lead' and ifnull(lead, '') != ''
|
||||
and ifnull(organization, '') != ''""")
|
||||
|
||||
webnotes.conn.sql("""update `tabQuotation` set customer_name = lead_name
|
||||
where quotation_to = 'Lead' and ifnull(lead, '') != ''
|
||||
and ifnull(organization, '') = '' and ifnull(lead_name, '') != ''""")
|
||||
|
||||
webnotes.conn.sql("""update `tabQuotation` set contact_display = lead_name
|
||||
where quotation_to = 'Lead' and ifnull(lead, '') != '' and ifnull(lead_name, '') != ''""")
|
||||
|
||||
webnotes.conn.sql("""update `tabOpportunity` set contact_display = lead_name
|
||||
where enquiry_from = 'Lead' and ifnull(lead, '') != '' and ifnull(lead_name, '') != ''""")
|
||||
@@ -229,4 +229,9 @@ patch_list = [
|
||||
"patches.march_2013.p12_set_item_tax_rate_in_json",
|
||||
"patches.april_2013.p01_update_serial_no_valuation_rate",
|
||||
"patches.april_2013.p02_add_country_and_currency",
|
||||
"patches.april_2013.p03_fixes_for_lead_in_quotation",
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Classic") # 2013-04-02',
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Modern") # 2013-04-02',
|
||||
'execute:webnotes.reload_doc("selling", "Print Format", "Quotation Spartan") # 2013-04-02',
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user