fix
This commit is contained in:
@@ -113,7 +113,7 @@ class Command(BaseCommand):
|
|||||||
debt_amount += i['debt_amount']
|
debt_amount += i['debt_amount']
|
||||||
orders.append(order)
|
orders.append(order)
|
||||||
party.orders.set(orders)
|
party.orders.set(orders)
|
||||||
PartyAmount.objects.get_or_create(
|
PartyAmount.objects.update_or_create(
|
||||||
party=party,
|
party=party,
|
||||||
defaults={
|
defaults={
|
||||||
"total_price": total_price,
|
"total_price": total_price,
|
||||||
|
|||||||
Reference in New Issue
Block a user