fix
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user