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

@@ -1,7 +1,7 @@
import webnotes
def execute():
for purchase_invoice in webnotes.conn.sql("""select distinct parent
for purchase_invoice in webnotes.conn.sql_list("""select distinct parent
from `tabPurchase Invoice Item` where docstatus = 1 and ifnull(valuation_rate, 0)=0"""):
pi = webnotes.get_obj("Purchase Invoice", purchase_invoice)
pi.calculate_taxes_and_totals()