mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 17:53:49 +00:00
fix: handle None in last_valuation_rate check
(cherry picked from commit a3058bf8cc)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user