mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Merge pull request #40969 from frappe/mergify/bp/version-15-hotfix/pr-40967
fix: zero division error (backport #40967)
This commit is contained in:
@@ -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