mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
Merge pull request #50300 from aerele/support-52253
fix: handle None in last_valuation_rate check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user