mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
merged with slow branch
This commit is contained in:
7
patches/july_2013/p01_same_sales_rate_patch.py
Normal file
7
patches/july_2013/p01_same_sales_rate_patch.py
Normal file
@@ -0,0 +1,7 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
webnotes.reload_doc("setup", "doctype", "global_defaults")
|
||||
|
||||
gd = webnotes.bean('Global Defaults')
|
||||
gd.doc.maintain_same_sales_rate = 1
|
||||
gd.save()
|
||||
13
patches/july_2013/p06_same_sales_rate.py
Normal file
13
patches/july_2013/p06_same_sales_rate.py
Normal file
@@ -0,0 +1,13 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
webnotes.reload_doc("selling", "doctype", "selling_settings")
|
||||
ss = webnotes.bean("Selling Settings")
|
||||
|
||||
same_rate = webnotes.conn.sql("""select field, value from `tabSingles`
|
||||
where doctype = 'Global Defaults' and field = 'maintain_same_sales_rate'"""):
|
||||
if same_rate:
|
||||
ss.doc.maintain_same_sales_rate = same_rate[1]
|
||||
else:
|
||||
ss.doc.maintain_same_sales_rate = 1
|
||||
|
||||
ss.save()
|
||||
@@ -253,4 +253,5 @@ patch_list = [
|
||||
"execute:webnotes.bean('Style Settings').save() #2013-07-16",
|
||||
"patches.july_2013.p04_merge_duplicate_leads",
|
||||
"patches.july_2013.p05_custom_doctypes_in_list_view",
|
||||
"patches.july_2013.p06_same_sales_rate",
|
||||
]
|
||||
Reference in New Issue
Block a user