fix
This commit is contained in:
@@ -26,7 +26,7 @@ class Command(BaseCommand):
|
||||
},
|
||||
)
|
||||
if item.get("balances"):
|
||||
balance = CounterpartyBalance.objects.create(
|
||||
balance, created = CounterpartyBalance.objects.get_or_create(
|
||||
counterparty=counterparty,
|
||||
balance_date=datetime.strptime(item['balances'][0]['start_date'], "%d.%m.%Y"),
|
||||
kredit_uzs=item['credit_amount'],
|
||||
|
||||
Reference in New Issue
Block a user