[accounts] [feature] optional checkbox for same rate validation in sales cycle

This commit is contained in:
Nabin Hait
2013-07-16 18:34:35 +05:30
parent aea0af02aa
commit 6a3b951352
5 changed files with 32 additions and 11 deletions

View 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()

View File

@@ -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",
]