Skip to content

Commit 614a8f1

Browse files
fix: allow zero valuation rate (frappe#44902)
1 parent 8bcfd24 commit 614a8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

erpnext/stock/stock_ledger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ def get_serialized_values(self, sle):
938938
# else it remains the same as that of previous entry
939939
self.wh_data.valuation_rate = new_stock_value / new_stock_qty
940940

941-
if not self.wh_data.valuation_rate and sle.voucher_detail_no:
941+
if self.wh_data.valuation_rate is None and sle.voucher_detail_no:
942942
allow_zero_rate = self.check_if_allow_zero_valuation_rate(sle.voucher_type, sle.voucher_detail_no)
943943
if not allow_zero_rate:
944944
self.wh_data.valuation_rate = self.get_fallback_rate(sle)

0 commit comments

Comments
 (0)