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