diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 188f2479cf73888226f21d928d38e74d6301c680..89e120a2e012251cf2fa8f45b4a9fb98f3343775 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -611,7 +611,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(