reports shows real budget information for total spend

This commit is contained in:
dandds
2018-09-18 09:54:28 -04:00
parent d4e8dcd0a6
commit ca8b9028bc
5 changed files with 56 additions and 13 deletions

View File

@@ -47,3 +47,19 @@ class TaskOrder(Base):
for c in self.__table__.columns
if c.name not in ["id", "attachment_id"]
}
@property
def budget(self):
return sum(
filter(
None,
[
self.clin_0001,
self.clin_0003,
self.clin_1001,
self.clin_1003,
self.clin_2001,
self.clin_2003,
],
)
)