You can now edit cost schedule attributes. Thanks Jesusbill and myoualid!

This commit is contained in:
Dion Moult
2021-04-10 18:10:33 +10:00
parent 0c9d555693
commit 9d838db096
5 changed files with 127 additions and 5 deletions
@@ -0,0 +1,10 @@
class Usecase:
def __init__(self, file, **settings):
self.file = file
self.settings = {"cost_schedule": 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_schedule"], name, value)