fix: zero division error
(cherry picked from commitf9e230e758) (cherry picked from commite9c6c5a8eb)
This commit is contained in:
committed by
Mergify
parent
04ca25e199
commit
72fc0836e1
@@ -444,7 +444,7 @@ class SellingController(StockController):
|
||||
get_valuation_method(d.item_code) == "Moving Average" and self.get("is_return")
|
||||
):
|
||||
# Get incoming rate based on original item cost based on valuation method
|
||||
qty = flt(d.get("stock_qty") or d.get("actual_qty"))
|
||||
qty = flt(d.get("stock_qty") or d.get("actual_qty") or d.get("qty"))
|
||||
|
||||
if (
|
||||
not d.incoming_rate
|
||||
|
||||
Reference in New Issue
Block a user