From e84937270eb1006f1c65b46294b13c1ade359e67 Mon Sep 17 00:00:00 2001 From: behruz-dev Date: Fri, 14 Nov 2025 15:22:54 +0500 Subject: [PATCH] fix bug --- core/apps/counterparty/views/counterparty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/apps/counterparty/views/counterparty.py b/core/apps/counterparty/views/counterparty.py index a72dd05..a6720db 100644 --- a/core/apps/counterparty/views/counterparty.py +++ b/core/apps/counterparty/views/counterparty.py @@ -143,6 +143,7 @@ class CounterpartyStatisticsApiView(views.APIView): total_debit_usd=Sum('debit_usd'), total_kredit_usd=Sum('kredit_usd'), ) + counterparty_stats = queryset.aggregate( total_counterparties=Count('id'), @@ -358,7 +359,7 @@ class CounterpartyAKTApiView(views.APIView): # TODO: partiyalarni kun boyicha ajratish for party in parties: - date_key = party.close_date.strftime('%Y-%m-%d') + date_key = party.closed_date.strftime('%Y-%m-%d') daily_data[date_key]['parties'].append(parties) # TODO: kirimlarni kun boyicha ajratish