[perpetual accounting] fixes in testcases

This commit is contained in:
Nabin Hait
2013-08-07 17:00:01 +05:30
parent cdd1d4bedb
commit 815a49e027
5 changed files with 106 additions and 26 deletions

View File

@@ -62,7 +62,7 @@ def update_entries_after(args, verbose=1):
(qty_after_transaction * valuation_rate) or 0
else:
stock_value = sum((flt(batch[0]) * flt(batch[1]) for batch in stock_queue))
# print sle.posting_date, sle.actual_qty, sle.incoming_rate, stock_queue, stock_value
# update current sle
webnotes.conn.sql("""update `tabStock Ledger Entry`
set qty_after_transaction=%s, valuation_rate=%s, stock_queue=%s,