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( project_folder = ProjectFolder.objects.filter(
name=i["project"]["name"] name=i["project"]["name"]
).first() ).first()
total_amount = i["total_amount"] or i["amount"] total_amount = i["total_amount"] or i["calculated_amount"]
order = Order.objects.create( order = Order.objects.create(
product=product, product=product,
amount=i["amount"], amount=i["amount"],
@@ -105,6 +105,7 @@ class Command(BaseCommand):
wherehouse=wherehouse, wherehouse=wherehouse,
counterparty=counterparty, counterparty=counterparty,
type='party', type='party',
received_count=i['recieved_quantity'],
) )
total_price += total_amount total_price += total_amount
paid_amount += i["paid_amount"] paid_amount += i["paid_amount"]