diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index c94b9869b11..53df3d1d6f7 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -1927,7 +1927,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