diff --git a/core/apps/orders/management/commands/import_party_by_number.py b/core/apps/orders/management/commands/import_party_by_number.py index 78f2288..d10a2ea 100644 --- a/core/apps/orders/management/commands/import_party_by_number.py +++ b/core/apps/orders/management/commands/import_party_by_number.py @@ -93,7 +93,7 @@ class Command(BaseCommand): project_folder = ProjectFolder.objects.filter( name=i["project"]["name"] ).first() - total_amount = i["total_amount"] or i["amount"] + total_amount = i["total_amount"] or i["calculated_amount"] order = Order.objects.create( product=product, amount=i["amount"], @@ -105,6 +105,7 @@ class Command(BaseCommand): wherehouse=wherehouse, counterparty=counterparty, type='party', + received_count=i['recieved_quantity'], ) total_price += total_amount paid_amount += i["paid_amount"]