mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
[accounts] [feature] optional checkbox for same rate validation in sales cycle
This commit is contained in:
9
patches/july_2013/p01_same_sales_rate_patch.py
Normal file
9
patches/july_2013/p01_same_sales_rate_patch.py
Normal file
@@ -0,0 +1,9 @@
|
||||
def execute():
|
||||
import webnotes
|
||||
webnotes.reload_doc("setup", "doctype", "global_defaults")
|
||||
|
||||
from webnotes.model.code import get_obj
|
||||
gd = get_obj('Global Defaults')
|
||||
gd.doc.maintain_same_sales_rate = 1
|
||||
gd.doc.save()
|
||||
gd.on_update()
|
||||
@@ -246,4 +246,5 @@ patch_list = [
|
||||
"execute:webnotes.reload_doc('accounts', 'DocType Mapper', 'Purchase Order-Purchase Invoice') # 2013-07-04 3:00",
|
||||
"execute:webnotes.reload_doc('accounts', 'DocType Mapper', 'Purchase Receipt-Purchase Invoice') # 2013-07-04 3:00",
|
||||
"execute:webnotes.delete_doc('Report', 'Sales Orders Pending To Be Delivered')",
|
||||
"patches.july_2013.p01_same_sales_rate_patch",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user