fix bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user