mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 04:09:11 +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, '') != ''""")
|
||||
Reference in New Issue
Block a user