fix
This commit is contained in:
@@ -28,9 +28,11 @@ class Command(BaseCommand):
|
|||||||
if item.get("balances"):
|
if item.get("balances"):
|
||||||
balance, created = CounterpartyBalance.objects.get_or_create(
|
balance, created = CounterpartyBalance.objects.get_or_create(
|
||||||
counterparty=counterparty,
|
counterparty=counterparty,
|
||||||
balance_date=datetime.strptime(item['balances'][0]['start_date'], "%d.%m.%Y"),
|
defaults=dict(
|
||||||
kredit_uzs=item['credit_amount'],
|
balance_date=datetime.strptime(item['balances'][0]['start_date'], "%d.%m.%Y"),
|
||||||
debit_uzs=item['debt_amount'],
|
kredit_uzs=item['credit_amount'],
|
||||||
|
debit_uzs=item['debt_amount'],
|
||||||
|
)
|
||||||
)
|
)
|
||||||
for b in item["balances"]:
|
for b in item["balances"]:
|
||||||
if b["currency"]["symbol"].lower() == 'uzs':
|
if b["currency"]["symbol"].lower() == 'uzs':
|
||||||
|
|||||||
Reference in New Issue
Block a user