portfolio value should include upcoming $obligated
Previously, we were displaying the total_portfolio_value as just currently obligated funds. Instead, this value should be obligated funds in current task orders and signed, upcoming task orders
This commit is contained in:
@@ -50,8 +50,10 @@ def reports(portfolio_id):
|
||||
return render_template(
|
||||
"portfolios/reports/index.html",
|
||||
portfolio=portfolio,
|
||||
# wrapped in str() because the sum of obligated funds returns a Decimal object
|
||||
total_portfolio_value=str(portfolio.total_obligated_funds),
|
||||
# wrapped in str() because this sum returns a Decimal object
|
||||
total_portfolio_value=str(
|
||||
portfolio.total_obligated_funds + portfolio.upcoming_obligated_funds
|
||||
),
|
||||
current_obligated_funds=current_obligated_funds,
|
||||
expired_task_orders=Reports.expired_task_orders(portfolio),
|
||||
retrieved=datetime.now(), # mocked datetime of reporting data retrival
|
||||
|
||||
Reference in New Issue
Block a user