diff --git a/apps/warehouse/services/transaction_dashboard_service.py b/apps/warehouse/services/transaction_dashboard_service.py index ec3d4fe..99eeae2 100644 --- a/apps/warehouse/services/transaction_dashboard_service.py +++ b/apps/warehouse/services/transaction_dashboard_service.py @@ -139,7 +139,8 @@ class TransactionDashboardService: share_totals[name]["total_price"] += item["total_price"] share_totals[name]["count"] += item["count"] - share_totals = dict(share_totals) + dict_share_total = dict(share_totals) + share_totals = [{"name": share, **dict_share_total[share]} for share in list(share_totals)] return { "transaction_summary": transaction_stats,