diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 54aefa89effa860d5bef37b569328a4a0e0113d0..0db49bfbf2f609891483b1a644d51fb9dbb2f87a 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -614,7 +614,7 @@ class SellingController(StockController): total_selling_amount = 0.0 for item in self.items: total_gross_profit += item.gross_profit or 0.0 - total_cost += (item.unit_cost_price or 0.0) * (item.stock_qty * 0.0) + total_cost += (item.unit_cost_price or 0.0) * (item.stock_qty or 0.0) total_selling_amount += item.base_amount or 0.0 if item.unit_cost_price: item.gross_profit_percentage = flt(