Returns the percentage discount applied to a purchase order item.
Returns 0 for groups and subtotals.
Input
Output
discounted_price
Returns a purchase order item’s price after discount.
Input
Output
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
Output
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
Output
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
Output
id
Returns a purchase order item ID.
The ID is an internal reference for a record. It's not exposed in our web interface.
Input
Output
image_url
Returns a URL pointing at the product or service's picture. The full size image is returned.
Input
Output
is_accessory?
Returns true if a purchase order item is an accessory; false otherwise.
Input
Output
is_group?
Returns true if a purchase order item is a group; false otherwise.
Input
Output
is_item?
Returns true if a purchase order item is an item; false otherwise.
Input
Output
is_principal?
Returns true if a purchase order item has accessory items nested underneath it; false otherwise.
Input
Output
is_product?
Returns true if a purchase order item is linked to a product record; false otherwise.
Input
Output
is_service_item?
Returns true if a purchase order item is linked to a service record; false otherwise.
Input
Output
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
Output
is_text_item?
Returns true if a purchase order item is a text item; false otherwise.
Input
Output
name
Returns a purchase order item's name.
Input
Output
opportunity
Returns opportunity objects for the opportunity that a purchase order item is related to.
Input
Output
opportunity_cost
Returns opportunity cost objects for the opportunity cost that a purchase order item is related to.
Input
Output
price
Returns a purchase order item's price without discount.
Input
Output
price_unit
Returns 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
Output
product
Where related to a product, returns product objects for a purchase order item.
Input
Output
product_group_name
Where related to a product, returns the related product's product group name for a purchase order item.
Input
Output
purchase_order
Returns purchase order objects for the purchase order that a purchase order item is related to.
Input
Output
quantity
Returns the quantity of a purchase order item.
Input
Output
rate_definition_name
Returns 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
Output
service
Where related to a service, returns service objects for a purchase order item.
Input
Output
service_unit_name
Returns the service unit name for a purchase order item.
Day
Days
Hour
Hours
miles
km
Input
Output
starts_at
Returns 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
Output
subtotal
Returns 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
Output
subtotal_name
Returns 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
Output
supplier_reference
Returns the supplier reference for a purchase order item's related opportunity cost.
Input
Output
tax_class_name
Returns the tax class name against a purchase order item.
Input
Output
tax_total
Returns the tax total for a purchase order item. Works for items and groups.
Input
Output
thumbnail_url
Returns a URL pointing at the product or service's picture. A thumbnail size image is returned.
Input
Output
transaction_type_name
Returns the transaction type name for a purchase order item.
Input
Output
unit_charge
Returns the unit charge for a purchase order.
The unit charge is the price for one unit of a purchase order.
Input
Output
unit_charge_amount
Returns the unit charge for a purchase order excluding discount.
The unit charge is the price for one unit of a purchase order.
Input
Output
weight_total
Returns the weight total for a purchase order item.
This is calculated by multiplying the quantity by the product weight.
Current uses the product weight at the time the opportunity item was added to the purchase order. Recalculate to get the latest product weights.
Input
Output
Use the company object to return your company weight unit, e.g. lbs or kg.
weight_total_including_children
Returns the weight total for a purchase order item.
This is calculated by multiplying the quantity by the product weight.