Assign control to cost items and UX Workschedules and Costchedules cleanup

This commit is contained in:
bosonprojets
2021-04-22 00:18:22 +00:00
parent 78314b1ec7
commit 8b35a3aadd
12 changed files with 502 additions and 272 deletions
@@ -0,0 +1,10 @@
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"cost_item": None, "attributes": {}}
for key, value in settings.items():
self.settings[key] = value
def execute(self):
for name, value in self.settings["attributes"].items():
setattr(self.settings["cost_item"], name, value)