1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Notes are force-updated when a transaction is saved

This commit is contained in:
Yohann D'ANELLO 2020-08-18 11:46:35 +02:00
parent e974eaa1fe
commit 6217f35f67

View File

@ -238,8 +238,10 @@ class Transaction(PolymorphicModel):
# Save notes # Save notes
self.source.balance += diff_source self.source.balance += diff_source
self.source._force_save = True
self.source.save() self.source.save()
self.destination.balance += diff_dest self.destination.balance += diff_dest
self.destination._force_save = True
self.destination.save() self.destination.save()
def delete(self, **kwargs): def delete(self, **kwargs):