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