Consolidated opportunities
The consolidated opportunities object contains information about consolidated opportunities in a project.
When working with a project, the consolidated opportunities object merges opportunities in a project with the same date and end date, then lets you access a list of consolidated opportunity items for those dates.
It's only available from the project object.
Project{% for order in project.consolidated_opportunities %}
<h1>{{ order.starts_at | localedate }} - {{ order.ends_at | localedate }}</h1>
<table class="table table-condensed">
<thead>
<tr>
<th class="align-right" style="width: 75px;">Qty</th>
<th>Item</th>
</tr>
</thead>
<tbody>
{% for item in order.consolidated_items %}
<tr>
<td class="align-right">{{ item.quantity | number }}</td>
<td style="padding-left: 16px">{{ item.name }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
consolidated_items
consolidated_items
Returns consolidated opportunity item objects on the project during this period.
Consolidated opportunity itemsends_at
ends_at
Returns the end date for the list of consolidated opportunity items.
Input
{{ order.starts_at }}
Output
2021-04-12 16:00:00 +0000
starts_at
starts_at
Returns the start date for the list of consolidated opportunity items.
Input
{{ order.ends_at }}
Output
2021-04-11 16:00:00 +0000
Last updated
Was this helpful?