Fix order of saving transactions
Snapshot value was not calculated correctly
This commit is contained in:
parent
cb253d4305
commit
2bd2eca26e
1 changed files with 1 additions and 1 deletions
|
@ -212,8 +212,8 @@ class Transaction(CustomModel):
|
||||||
|
|
||||||
def save(self, *args, **kwargs):
|
def save(self, *args, **kwargs):
|
||||||
self.account = self.snapshot.account
|
self.account = self.snapshot.account
|
||||||
self.snapshot.update_sum()
|
|
||||||
super().save(*args, **kwargs)
|
super().save(*args, **kwargs)
|
||||||
|
self.snapshot.update_sum()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"{self.date} – {self.name}"
|
return f"{self.date} – {self.name}"
|
||||||
|
|
Loading…
Reference in a new issue