Check that request is financially verified before approving

This commit is contained in:
richard-dds
2018-08-29 12:52:20 -04:00
parent 3ab528f192
commit 60275f8c3a
2 changed files with 9 additions and 2 deletions

View File

@@ -35,3 +35,11 @@ class Request(Base):
def annual_spend(self):
monthly = self.body.get("details_of_use", {}).get("estimated_monthly_spend", 0)
return monthly * 12
@property
def financial_verification(self):
return self.body.get("financial_verification")
@property
def is_financially_verified(self):
return self.task_order is not None