Liquid syntax
  • Welcome
  • Introduction
    • What is Liquid syntax?
    • Liquid operators
    • Liquid objects
    • Liquid tags
    • Liquid filters
    • Best practices
  • Information
    • Attributes
    • Consolidation
    • Custom fields
    • Date filter reference
    • Deal pricing
    • Special items
  • PDF renderer
    • PDF document limitations
  • General
    • Address detail
    • Attachments
    • Company
    • Emails
    • Links
    • Phones
    • Store
  • Activity
    • Activity
  • Inventory Check
    • Inventory check (stock check)
    • Inventory check items (stock check items)
  • Invoices & Credits
    • Invoice
    • Invoice items
    • Invoice transactions
    • Invoice taxes
  • Opportunities
    • Opportunity
    • Opportunity items
    • Opportunity item assets
    • Opportunity item surcharges
    • Opportunity costs
    • Opportunity return item assets
    • Consolidated opportunity items
    • Consolidated opportunities
  • People & Organizations
    • Contact
    • Organization
    • User
    • Vehicle
    • Venue
  • Products
    • Product
    • Product group
    • Charging period
    • Product accessories
    • Product assets
    • Stock level
  • Project
    • Project
  • Purchase orders
    • Purchase order
    • Purchase order items
  • Quarantine
    • Quarantine
  • Service
    • Service
  • Testing & inspection
    • Inspection results
    • Inspection result tasks
Powered by GitBook
On this page
  • consolidated_items
  • ends_at
  • starts_at

Was this helpful?

  1. Opportunities

Consolidated opportunities

The consolidated opportunities object contains information about consolidated opportunities in a project.

PreviousConsolidated opportunity itemsNextContact

Last updated 4 years ago

Was this helpful?

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.

{% 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

Returns consolidated opportunity item objects on the project during this period.

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

Returns the start date for the list of consolidated opportunity items.

Input

{{ order.ends_at }}

Output

2021-04-11 16:00:00 +0000 
Project
Consolidated opportunity items