Test extension

* adds further checks on EcoAccount tests for proper updating of new deductable_rest attribute
This commit is contained in:
2022-10-12 08:59:38 +02:00
parent 87b01e8fdd
commit 2c20069dea
3 changed files with 18 additions and 4 deletions

View File

@@ -128,6 +128,8 @@ class NewEcoAccountForm(AbstractCompensationForm, CompensationResponsibleFormMix
# Add the log entry to the main objects log list
acc.log.add(action)
acc.update_deductable_rest()
return acc
@@ -210,6 +212,8 @@ class EditEcoAccountForm(NewEcoAccountForm):
# Add the log entry to the main objects log list
self.instance.log.add(action)
self.instance.update_deductable_rest()
return self.instance