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
  • Naming conventions
  • Opportunity objects
  • special_items
  • items_including_special_items
  • Opportunity item objects
  • is_special?
  • is_special_group?
  • is_special_principal?
  • is_special_accessory?
  • Opportunity item asset
  • is_permanent_serialised_container?
  • is_temporary_serialised_container?
  • is_permanent_serialised_component?
  • is_temporary_serialised_component?
  • Stock level
  • container_components_and_descendants
  • serialised_components_and_descendants
  • is_permanent_serialised_container?
  • is_temporary_serialised_container?
  • container_weight
  • depth_padding
  • serialised_component_quantity

Was this helpful?

  1. Information

Special items

Temporary container components are “special items”. They behave differently on document layouts to other opportunity items.

PreviousDeal pricingNextPDF document limitations

Last updated 5 years ago

Was this helpful?

When , Current adds container components that aren't already on the opportunity to a special “Spares & Containers” group. It adds the container to this group, too.

We don't print this group on customer-facing document layouts by default.

Items that make up this “Spares & Containers” group are known as ‘special items’ internally. If you like, you may access special items on opportunity document layouts.

To print special items on our standard quotation or rental agreement documents, it should be as simple as swapping order.items for order.items_including_special_items and changing your logic to include special items. You may use booleans to determine whether an opportunity item is a special group, item, or accessory.

Serialized component information is also available in the stock level object, useful for creating documents against the product module.

Naming conventions

Before the launch of temporary containers, we used the term ‘serialized components’ to refer to components inside of a serialized container. Temporary containers may include bulk and non-stock, so we changed the terminology in the web interface to ‘container components’ for clarity.

For compatibility, our Liquid objects still use the term ‘serialized components’ to refer to components inside of a serialized container. Keep in mind that container components themselves might not be serialized.

Opportunity objects

The items, products, and rentals objects do not return any special items.

special_items

items_including_special_items

Opportunity item objects

is_special?

Returns true if the opportunity item is a special item; false otherwise.

is_special_group?

Returns true if an opportunity item is a special group; false otherwise.

This will usually be called “Spares & Containers”, but the special group name can be changed on an opportunity.

is_special_principal?

Returns true if an opportunity item is special and has accessory items nested underneath it; false otherwise.

is_special_accessory?

Returns true if an opportunity item is special and an accessory; false otherwise.

Opportunity item asset

is_permanent_serialised_container?

Returns true if an opportunity item asset is a permanent serialized container; false otherwise.

is_temporary_serialised_container?

Returns true if an opportunity item asset is a temporary serialized container; false otherwise.

is_permanent_serialised_component?

Returns true if an opportunity item asset is a permanent container container; false otherwise.

is_temporary_serialised_component?

Returns true if an opportunity item asset is a temporary container container; false otherwise.

Stock level

We added new stock level objects when we launched temporary containers. They're used in the ‘Container Contents’ document layout that's available to print from product, stock level, and serialized container screens.

container_components_and_descendants

Input

{% for component in asset.container_components_and_descendants %}
  {{ component.asset_number }}
{% endfor %}

Output

D&B E3 Speaker

serialised_components_and_descendants

is_permanent_serialised_container?

Returns true if a stock level is a permanent serialized container; false otherwise.

is_temporary_serialised_container?

Returns true if a stock level is a temporary serialized container; false otherwise.

container_weight

Returns the weight of a serialized container, including all component stock levels.

depth_padding

Returns the depth padding for a container component stock level. Generally used to apply an inline style to a table cell in HTML so that items appear nested.

Increments in multiples of 16.

serialised_component_quantity

Returns the quantity against the container component record if this stock level has been created for the container contents.

Returns for special items on an opportunity.

Returns for all opportunity items, including special items.

Returns for container components of this serialized container.

Returns for container components of this serialized container. This is the same as above and is included to maintain consistency in naming conventions.

Use the weight unit to print the weight unit for your system.

opportunity item objects
opportunity item objects
stock level objects
stock level objects
company object
allocating a temporary container to an opportunity
Example “Spares & Containers” group on an opportunity. ‘special items’
Example Container Contents document for a temporary container.