diff --git a/inventory/views.py b/inventory/views.py index 166e5b37..49d54ba6 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -505,7 +505,7 @@ def general_dashboard(request,dealer_slug): total_revenue_generated = total_revenue_from_cars + total_revenue_from_services # total_expenses=sum([x.amount_paid for x in dealer.entity.get_bills().filter(bill_items__item_role="expense")]) total_expenses=dealer.entity.get_bills().filter(bill_items__item_role="expense").aggregate(total=Sum('amount_paid'))['total'] or 0 - gross_profit = net_profit_from_cars - total_expenses + gross_profit = net_profit_from_cars+total_revenue_from_services - total_expenses # ---------------------------------------------------- # 4. Chart Data Aggregation diff --git a/static/images/car_images/f89b2f8db1f26281ab947580f1d854271c133f4e910f0b5ce2a55681566ba3c0.png b/static/images/car_images/f89b2f8db1f26281ab947580f1d854271c133f4e910f0b5ce2a55681566ba3c0.png new file mode 100644 index 00000000..1f77b631 Binary files /dev/null and b/static/images/car_images/f89b2f8db1f26281ab947580f1d854271c133f4e910f0b5ce2a55681566ba3c0.png differ