diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index 2df4b257aa5..bc54f88687e 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -1914,7 +1914,7 @@ def get_valuation_rate( ) last_valuation_rate = query.run() - if last_valuation_rate: + if last_valuation_rate and last_valuation_rate[0][0] is not None: return flt(last_valuation_rate[0][0]) # Get moving average rate of a specific batch number