This commit is contained in:
behruz-dev
2025-11-12 13:56:25 +05:00
parent 32ec86b3b4
commit cf2bb89e4c

View File

@@ -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,