From 4420560c9c187f8d8ecf387088502ad1646f604b Mon Sep 17 00:00:00 2001 From: Herculino Trotta Date: Mon, 28 Oct 2024 01:26:34 -0300 Subject: [PATCH] fix: refreshing installment plan don't update notes --- app/apps/transactions/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/apps/transactions/models.py b/app/apps/transactions/models.py index 52cb21c..cc07ff9 100644 --- a/app/apps/transactions/models.py +++ b/app/apps/transactions/models.py @@ -284,6 +284,7 @@ class InstallmentPlan(models.Model): existing_transaction.amount = self.installment_amount existing_transaction.description = self.description existing_transaction.category = self.category + existing_transaction.notes = self.notes existing_transaction.save() # Update tags @@ -301,6 +302,7 @@ class InstallmentPlan(models.Model): category=self.category, installment_plan=self, installment_id=i, + notes=self.notes, ) new_transaction.tags.set(self.tags.all())