We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aeee42e + 7a98e13 commit 266ac2dCopy full SHA for 266ac2d
1 file changed
erpnext/stock/stock_ledger.py
@@ -991,7 +991,7 @@ def get_serialized_values(self, sle):
991
# else it remains the same as that of previous entry
992
self.wh_data.valuation_rate = new_stock_value / new_stock_qty
993
994
- if not self.wh_data.valuation_rate and sle.voucher_detail_no:
+ if self.wh_data.valuation_rate is None and sle.voucher_detail_no:
995
allow_zero_rate = self.check_if_allow_zero_valuation_rate(sle.voucher_type, sle.voucher_detail_no)
996
if not allow_zero_rate:
997
self.wh_data.valuation_rate = self.get_fallback_rate(sle)
0 commit comments