fixes in test cases and added fiscal year field to stock reco

This commit is contained in:
Anand Doshi
2013-03-26 14:49:25 +05:30
parent 988bca04f2
commit 40dc9e83a5
10 changed files with 96 additions and 31 deletions

View File

@@ -3,8 +3,8 @@ import webnotes
def execute():
dn_list = webnotes.conn.sql("""select name from `tabDelivery Note` where docstatus < 2""")
for dn in dn_list:
webnotes.bean("Delivery Note", dn[0]).set_buying_amount()
webnotes.bean("Delivery Note", dn[0]).run_method("set_buying_amount")
si_list = webnotes.conn.sql("""select name from `tabSales Invoice` where docstatus < 2""")
for si in si_list:
webnotes.bean("Sales Invoice", si[0]).set_buying_amount()
webnotes.bean("Sales Invoice", si[0]).run_method("set_buying_amount")