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