Feature to add multiple summary cost items and remove cost items

This commit is contained in:
bosonprojets
2021-04-15 23:08:45 +00:00
parent f4e6e924b1
commit 5f9474acb7
4 changed files with 64 additions and 13 deletions
@@ -0,0 +1,10 @@
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"cost_item": None}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
# TODO: do a deep purge
self.file.remove(self.settings["cost_item"])