From 34cb9daca62bccbcee52b72299d37ffb43cde6b3 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 9 Jan 2020 10:37:54 -0500 Subject: [PATCH] Only fake expended funds if the TO is active --- atst/models/task_order.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atst/models/task_order.py b/atst/models/task_order.py index 36ba905e..789a7e3f 100644 --- a/atst/models/task_order.py +++ b/atst/models/task_order.py @@ -140,7 +140,10 @@ class TaskOrder(Base, mixins.TimestampsMixin): @property def invoiced_funds(self): # TODO: implement this using reporting data from the CSP - return self.total_obligated_funds * Decimal(0.75) + if self.is_active: + return self.total_obligated_funds * Decimal(0.75) + else: + return 0 @property def display_status(self):