fix
This commit is contained in:
@@ -362,7 +362,7 @@ class CounterpartyAKTApiView(views.APIView):
|
||||
|
||||
# Partiyalarni kunga ajratish (close_date bo'yicha)
|
||||
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(party)
|
||||
party_total = getattr(party, 'total_price', 0) or 0
|
||||
daily_data[date_key]['day_kredit'] += Decimal(party_total)
|
||||
|
||||
Reference in New Issue
Block a user