commit | ed34ab43e8976b70c372112032df000d75e64f1e | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Tue Jan 15 10:42:39 2013 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Tue Jan 15 10:42:39 2013 +0530 |
tree | e1d09a8c9fea0c1e65995187ed4495b62d835f83 | |
parent | 29b8093ec4a092ca51de23daa46f63b69b58ebe6 [diff] |
stock_ledger, removed un-necessary incoming_rate calculation
diff --git a/stock/stock_ledger.py b/stock/stock_ledger.py index db88f6b..ffb6692 100644 --- a/stock/stock_ledger.py +++ b/stock/stock_ledger.py
@@ -248,8 +248,6 @@ batch[0] -= qty_to_pop qty_to_pop = 0 - incoming_rate = incoming_cost / flt(abs(actual_qty)) - stock_value = sum((flt(batch[0]) * flt(batch[1]) for batch in stock_queue)) stock_qty = sum((flt(batch[0]) for batch in stock_queue))