commit | cc699a94fdb9fc211cd8e92d2d846a0dd9aabfaf | [log] [tgz] |
---|---|---|
author | nick9822 <nick9822@gmail.com> | Tue Jun 20 17:13:29 2017 +0530 |
committer | GitHub <noreply@github.com> | Tue Jun 20 17:13:29 2017 +0530 |
tree | 7fe6aea11088b0fd88b903ee30d788a9524dddc5 | |
parent | d59df5dd5d1e6359e4655bbd6d0442eb27e2a872 [diff] |
Bug while fetching new item balance.
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index fd1ece2..2b9def3 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py
@@ -65,7 +65,7 @@ if with_valuation_rate: return (last_entry.qty_after_transaction, last_entry.valuation_rate) if last_entry else (0.0, 0.0) else: - return last_entry.qty_after_transaction or 0.0 + return last_entry.qty_after_transaction if last_entry else 0.0 def get_latest_stock_balance(): bin_map = {}