This commit is contained in:
behruz-dev
2025-11-12 14:04:00 +05:00
parent 2cce3e9256
commit 2a67e69d06

View File

@@ -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"]