This commit is contained in:
behruz-dev
2025-11-05 18:15:17 +05:00
parent 8178993dc0
commit c76aef126e
3 changed files with 12 additions and 9 deletions

View File

@@ -7,6 +7,5 @@ class Command(BaseCommand):
def handle(self, *args, **options):
parties = Party.objects.all()
for party in parties:
party.party_amount.payment_amount = party.party_amount.calculated_amount - party.party_amount.paid_amount
party.party_amount.save()
self.stdout.write("Parties updated")