mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-07-13 16:22:42 +02:00
fix: refreshing installment plan don't update notes
This commit is contained in:
@@ -284,6 +284,7 @@ class InstallmentPlan(models.Model):
|
|||||||
existing_transaction.amount = self.installment_amount
|
existing_transaction.amount = self.installment_amount
|
||||||
existing_transaction.description = self.description
|
existing_transaction.description = self.description
|
||||||
existing_transaction.category = self.category
|
existing_transaction.category = self.category
|
||||||
|
existing_transaction.notes = self.notes
|
||||||
existing_transaction.save()
|
existing_transaction.save()
|
||||||
|
|
||||||
# Update tags
|
# Update tags
|
||||||
@@ -301,6 +302,7 @@ class InstallmentPlan(models.Model):
|
|||||||
category=self.category,
|
category=self.category,
|
||||||
installment_plan=self,
|
installment_plan=self,
|
||||||
installment_id=i,
|
installment_id=i,
|
||||||
|
notes=self.notes,
|
||||||
)
|
)
|
||||||
new_transaction.tags.set(self.tags.all())
|
new_transaction.tags.set(self.tags.all())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user