aii: stock entry

This commit is contained in:
Nabin Hait
2013-03-19 12:01:24 +05:30
parent 35e037651c
commit c3afb256b4
8 changed files with 174 additions and 81 deletions

View File

@@ -71,7 +71,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,