Purchase order items
accessories
accessories Returns opportunity item objects for a purchase order item. Works in the same way that the children object does.
Input
{% for item in item.accessories %}
{{ item.name }}
{% endfor %}Output
ETC Source Fourcharge_total_including_children
charge_total_including_children Returns a purchase order item charge total, including the charge total of any accessory items.
Generally used where you’d like to roll up the price of accessories into their parent item, like when working with packages or kits.
Input
{{ item.charge_total_including_children }}Output
120.0accessory_is_default?
Returns true if a purchase order is an accessory and the accessory’s inclusion type is “Default”.
Input
{{ item.accessory_is_default }}Output
falseaccessory_is_mandatory?
accessory_is_mandatory?Returns true if a purchase order item is an accessory and the accessory’s inclusion type is “Mandatory”.
Input
{{ item.accessory_is_mandatory? }}Output
falseaccessory_is_optional?
accessory_is_optional?Returns true if a purchase order is an accessory and the accessory’s inclusion type is “Optional”.
Input
{{ item.accessory_is_optional? }}Output
falseaccessory_mode_is_accessory?
accessory_mode_is_accessory?Returns true if a purchase order is an accessory and the accessory’s mode is “Accessory”.
Input
{{ item.accessory_mode_is_accessory? }}Output
falseaccessory_mode_is_component?
accessory_mode_is_component?Returns true if a purchase order is an accessory and the accessory’s mode is “Component”.
Input
{{ item.accessory_mode_is_component? }}Output
falseaccessory_mode_is_safety?
accessory_mode_is_safety?Returns true if a purchase order is an accessory and the accessory’s mode is “Safety”.
Input
{{ item.accessory_mode_is_safety? }}Output
falseaccessory_mode_name
accessory_mode_nameReturns the accessory’s mode name where a purchase order is an accessory; blank otherwise.
accessory
component
safety item
Input
{{ item.accessory_mode_name }}Output
accessorycharge_excluding_tax_total
charge_excluding_tax_totalReturns a purchase order item charge total excluding tax.
Input
{{ item.charge_excluding_tax_total }}Output
50.0charge_including_tax_total
charge_including_tax_totalReturns a purchase order item charge total including tax.
Input
{{ item.charge_including_tax_total }}Output
60.0charge_total_including_children
charge_total_including_childrenReturns a purchase order charge total, including the charge total of any accessory items.
Generally used where you’d like to roll up the price of accessories into their parent item, like when working with packages or kits.
Input
{{ item.charge_total_including_children }}Output
120.0charge_total
charge_totalReturns a purchase order item charge total.
This may be including or excluding tax depending on the value of the “Catalog Prices” setting in System Preferences.
Input
{{ item.charge_total }}Output
50.0chargeable_days
chargeable_daysReturns the number of chargeable days for a purchase order item.
For service items, the value of the “Rate Quantity” field is returned. The rate type may be hour or distance.
For sale items, returns 0.
Input
{{ item.chargeable_days }}Output
8.0charging_periods
charging_periodsReturns charging period objects for a purchase order item.
Input
{% for charge_period in item.charging_periods %}
{{ charge_period.name }}
{% endfor %}Output
Dailychildren
Returns purchase order item objects for a purchase order item.
When an item is an item, this will return accessories.
When the item is a group, this will return items within that group.
The children object only returns objects that are the next level deep in the tree. For example, accessories on accessories aren't returned.
Input
{% for item in item.children %}
{{ item.name }}
{% endfor %}Output
ETC Source Fourdepth
depthReturns the depth of a purchase order item in the tree. An item’s depth is determined by how it is nested under items.

Input
{{ item.depth }}Output
1depth_padding
depth_paddingReturns the depth padding for a purchase order item. Generally used to apply an inline style to a table cell in HTML so that items appear nested.
Increments in multiples of 16.
Input
<td style="padding-left: {{ item.depth_padding }}px;">
{{ item.name }}
</td>Output
<td style="padding-left: 16px;">
Leica R-Series 180mm f/2.8
</td>description
descriptionReturns a purchase order item’s description.
Input
{{ item.description }}Output
Supplied with a memory card.discount_amount
discount_amountReturns the amount of discount applied to a purchase order item.
Returns 0 for groups and subtotals.
Use discount_total for groups.
Input
{{ item.discount_amount }}Output
10.0discount_percent
discount_percentReturns the percentage discount applied to a purchase order item.
Returns 0 for groups and subtotals.
Input
{{ item.discount_percent }}Output
50.0discounted_price
discounted_priceReturns a purchase order item’s price after discount.
Input
{{ item.discounted_price }}Output
100.0ends_at
ends_at Returns the charging end date for a purchase order item. Generally used for service items.
For service items, returns the end date and time for the opportunity item.
For rental and sale items, returns the end date and time for the opportunity.
For groups, returns blank.
For subtotals, returns the date and time that the document was generated in UTC.
Input
{{ item.ends_at }}Output
2021-05-15 09:00:00 +0100has_child_items?
has_child_items? Returns true if a purchase order item has children items; false otherwise. Generally used for detecting if an opportunity item has accessories.
Input
{{ item.has_child_items? }}Output
truehas_discount?
has_discount?Returns true if a purchase order item has a discount applied; false otherwise.
Where a purchase order item has a negative discount applied, has_discount will return false. For example, -50% would increment the charge total by 50% so has_discount will return false.
Input
{{ item.has_discount? }}Output
trueid
Returns a purchase order item ID.
Input
{{ item.id }}Output
1 image_url
Returns a URL pointing at the product or service's picture. The full size image is returned.
Input
{{ item.icon_url }}Output
https://s3.amazonaws.com/cobra-4934606a-294f-4fc2-bca1-2fd55ba5019c/icons/449/original/abigail.jpegis_accessory?
is_accessory?Returns true if a purchase order item is an accessory; false otherwise.
Input
{{ item.is_accessory? }}Output
trueis_group?
is_group?Returns true if a purchase order item is a group; false otherwise.
Input
{{ if item.is_group? %}
{{ item.name }}
{% endif %}Output
Lightingis_item?
is_item?Returns true if a purchase order item is an item; false otherwise.
Input
{% if item.is_item? %}
{{ item.name }}
{% endif %}Output
Avolites ART 2000 Power Cubeis_principal?
is_principal?Returns true if a purchase order item has accessory items nested underneath it; false otherwise.
Input
{% item.is_principal? %}Output
trueis_product?
is_product?Returns true if a purchase order item is linked to a product record; false otherwise.
Input
{% item.is_product? %}Output
trueis_service_item?
is_service_item?Returns true if a purchase order item is linked to a service record; false otherwise.
Input
{{ item.is_service_item? }}Output
falseis_subtotal?
is_subtotal?Returns true if a purchase order item is a group item's subtotal; false otherwise.
Subtotal rows are informational only and many purchase order item objects will print "Liquid error: internal" rather than return blank or false.
Input
{% if item.is_subtotal? %}
Total for {{ item.subtotal_name }}
{% endif %}Output
Total for Lightingis_text_item?
is_text_item?Returns true if a purchase order item is a text item; false otherwise.
Input
{{ item.is_text_item? }}Output
truename
nameReturns a purchase order item's name.
Input
{{ item.name }}Output
Robe RoboSpotopportunity
opportunity Returns opportunity objects for the opportunity that a purchase order item is related to.
Input
{{ item.opportunity.name }}Output
V-Blast Music Festivalopportunity_cost
opportunity_cost Returns opportunity cost objects for the opportunity cost that a purchase order item is related to.
Input
{{ item.opportunity_cost.subject }}Output
Sub-rental price
price Returns a purchase order item's price without discount.
Input
{{ item.price }}Output
200.0price_unit
price_unitReturns a purchase order item's price unit name.
The price unit name output depends on the rental charge used. Some common examples:
Daily
Weekly
Per period
Each
Input
{{ item.price_unit }}Output
Weeklyproduct
product Where related to a product, returns product objects for a purchase order item.
Input
{{ item.product.description }}Output
Isn't it about time you upgraded to the best? The new Hemingway X10 is all the audio you never knew you needed.product_group_name
product_group_name Where related to a product, returns the related product's product group name for a purchase order item.
Input
{{ item.product_group_name }}Output
Cameras purchase_order
purchase_order Returns purchase order objects for the purchase order that a purchase order item is related to.
Input
{{ item.purchase_order.name }}Output
Extra gear for showquantity
quantityReturns the quantity of a purchase order item.
Input
{{ item.quantity }}Output
1.0rate_definition_name
rate_definition_nameReturns the rate definition name for a purchase order item where the item is a sub-rental.
Returns blank for sales, services, and group items.
Input
{{ item.rate_definition_name }}Output
Daily Rateservice
service Where related to a service, returns service objects for a purchase order item.
Input
{{ item.service.description }}Output
Let our techs take care of everything for you!service_unit_name
service_unit_nameReturns the service unit name for a purchase order item.
Day
Days
Hour
Hours
miles
km
Input
{{ item.service_unit_name }}Output
Daysstarts_at
starts_atReturns the charging start date for a purchase order item. Generally used for service items.
For service items, returns the start date and time for the opportunity item.
For rental and sale items, returns the start date and time for the opportunity.
For groups, returns blank.
For subtotals, returns the date and time that the document was generated in UTC.
Input
{{ item.starts_at }}Output
2021-04-15 09:00:00 +0100subtotal
subtotalReturns the subtotal amount for a purchase order group.
Subtotal rows are informational only. This will only return a value for subtotal rows. This will match the charge_total of the corresponding purchase order item group.
Input
{% if item.is_subtotal? %}
{{ item.subtotal }}
{% endif %}Output
1000.0subtotal_name
subtotal_nameReturns the subtotal name for a purchase order item group.
Subtotal rows are informational only. This will only return a value for subtotal rows. This will match the name of the corresponding purchase order group.
Input
{% if item.is_subtotal? %}
{{ item.subtotal_name }}
{% endif %}Output
Lightingsupplier_reference
supplier_referenceReturns the supplier reference for a purchase order item's related opportunity cost.
Input
{{ item.supplier_reference }}Output
JJ110tax_class_name
tax_class_name Returns the tax class name against a purchase order item.
Input
{{ item.tax_class_name }} Output
VAT Standardtax_total
tax_totalReturns the tax total for a purchase order item. Works for items and groups.
Input
{{ item.tax_total }}Output
50.0thumbnail_url
thumbnail_urlReturns a URL pointing at the product or service's picture. A thumbnail size image is returned.
Input
{{ item.thumbnail_icon_url }}Output
https://s3.amazonaws.com/cobra-4934606a-294f-4fc2-bca1-2fd55ba5019c/icons/449/original/abigail.jpegtransaction_type_name
transaction_type_nameReturns the transaction type name for a purchase order item.
Input
{{ item.transaction_type_name }}Output
Sub-Rentalunit_charge
unit_chargeReturns the unit charge for a purchase order.
The unit charge is the price for one unit of a purchase order.
Input
{{ item.unit_charge }}Output
100.0unit_charge_amount
unit_charge_amountReturns the unit charge for a purchase order excluding discount.
The unit charge is the price for one unit of a purchase order.
Input
{{ item.unit_charge_amount }}Output
50.0weight_total
weight_totalReturns the weight total for a purchase order item.
This is calculated by multiplying the quantity by the product weight.
Input
{{ item.weight_total }}Output
50.0weight_total_including_children
weight_total_including_childrenReturns the weight total for a purchase order item.
This is calculated by multiplying the quantity by the product weight.
Input
{{ item.weight_total_including_children }}Output
100.0Last updated
Was this helpful?