Opportunity item assets
The opportunity item assets object holds information held against opportunity item assets.
When you add a product or service to an opportunity, it creates an opportunity item on that opportunity. Opportunity items have opportunity item assets, which are records for allocations for that item.
An allocation might be a serialized asset or a sub-rent booking.
Generally, the opportunity item asset object is used to print operations documents like Picking Lists, Delivery Notes, and Collection Notes.
Document layouts
The asset object can be accessed in document layouts against the following modules:
Opportunity
{% for asset in order.product_assets %}
{{ asset.asset_number }}
{% endfor %}To print assets against an opportunity item:
{% for item in order.items %}
{% if item.is_item? %}
{% for asset in item.assets %}
{{ asset.asset_number }}
{% endfor %}
{% endif %}
{% endfor %}To print assets inside a container:
To print assets for a sub-rent supplier:
Member
To print sub-rent allocations for a particular supplier:
Discussion templates
The asset object can be accessed in document layouts against the following modules:
Opportunity
To print assets against an opportunity item:
To print assets inside a container:
To print assets for a sub-rent supplier:
Member
To print sub-rent allocations for a particular supplier:
asset_number
asset_numberWhere serialized, returns an opportunity item asset asset number.
Returns blank for bulk or non-stock.
Input
Output
barcode_number
barcode_numberWhere bulk or non-stock, returns an opportunity item asset's related product barcode number.
Returns blank for serialized.
Input
Output
container
containerReturns the opportunity item asset container name.
Returns blank where no container is set.
Input
Output
cost
costReturns opportunity cost objects for an opportunity item asset.
Input
Output
Opportunity costsdepth
depthReturns the depth of an opportunity item asset in the tree. An item’s depth is determined by how it is nested under items.

Input
Output
depth_padding
depth_paddingReturns the depth padding for an opportunity item asset. Generally used to apply an inline style to a table cell in HTML so that items appear nested.
Increments in multiples of 16.
Input
Output
description
descriptionReturns an opportunity item asset’s related opportunity item description.
Input
Output
group_depth_padding
group_depth_paddingReturns the depth padding for an opportunity item asset's related opportunity group.
Used in our default documents where the order.product_assets is looped, which doesn't include groups.
Input
Output
group_description
group_descriptionReturns the description for an opportunity item asset's related opportunity group.
Used in our default documents where the order.product_assets is looped, which doesn't include groups.
Input
Output
group_name
group_name Returns the name for an opportunity item asset's related opportunity group.
Used in our default documents where the order.product_assets is looped, which doesn't include groups.
Input
Output
has_shortage?
has_shortage?Returns true where an opportunity item asset has a shortage; false otherwise.
Shortages are highlighted in red and have an ⚠️ exclamation icon next to them in the list.
Input
Output
id
idReturns an opportunity item asset ID.
Input
Output
is_bulk_stock?
is_bulk_stock?Returns true if an opportunity item asset is for bulk stock; false otherwise.
Input
Output
is_non_stock_booking?
is_non_stock_booking?Returns true if an opportunity item asset is a non-stock allocation; false otherwise.
Text items are considered non-stock allocations.
Input
Output
is_resource_stock?
is_resource_stock?Returns true if an opportunity item asset is a service with bookable resource, i.e. a bookable resource has been allocated; false otherwise.
Input
Output
is_serialised_component?
Returns true if an opportunity item asset is a serialized component, i.e. it is part of a serialized container; false otherwise.
is_serialised_container?
Returns true if an opportunity item asset is a serialized container; false otherwise.
is_serialised_stock?
is_serialised_stock?Returns true if an opportunity item asset is a serialized stock allocation, i.e. a serialized asset has been allocated; false otherwise.
Input
Output
location
locationReturns the stock level location for an opportunity item asset.
Input
Output
name
nameReturns an opportunity item asset's name. This will always be the name of the opportunity item.
Input
Output
opportunity_item
Returns opportunity item objects for an opportunity item asset.
Generally used to access information like the opportunity item charge total or description.
Input
Output
Opportunity itemsouter_container
Returns the container attribute of a serialised component's serialised container. Otherwise returns the same as the container method.
product
productReturns product objects for an opportunity item asset, where related to a product.
Input
Output
Productquantity
quantityReturns the quantity against an opportunity item asset.
Input
Output
replacement_value
replacement_valueReturns the replacement charge for an opportunity item asset. This may differ from the opportunity item replacement charge depending on the quantity.
Input
Output
resource
resourceReturns contact, user, or vehicle objects for a bookable resource allocation.
Input
Output
People & Organizationsresource_name
resource_nameReturns the name of the contact, user, or vehicle for a bookable resource allocation.
Input
Output
return_assets
return_assetsReturns opportunity item return assets for an opportunity item asset.
Input
Output
Opportunity return item assetsserial_number
serial_numberReturns the stock level serial number for an opportunity item asset.
Input
Output
service
serviceReturns service objects for an opportunity item asset, where related to a service.
Input
Output
service_name
service_nameReturns the name of the related service for an opportunity item asset.
Input
Output
status
statusReturns the opportunity item asset status ID.
ID
Status name
1
Provisional
2
(Allocated)
5
Reserved
10
Allocated
15
Prepared
20
Booked Out
30
Checked In
40
Completed
45
Moved
Input
Output
status_name
status_nameReturns the opportunity item asset status name.
Status names are in the language set against your user profile.
Provisional
(Allocated)
Reserved
Allocated
Prepared
Booked Out
Checked In
Completed
Moved
Input
Output
stock_level
stock_levelReturns stock level objects for the related stock level of an opportunity item asset.
Input
Output
Stock levelsupplier
supplierReturns organization objects for a sub-rent or sub-contract supplier related to an opportunity item asset.
Input
Output
Organizationsupplier_name
supplier_name Returns the name of the organization set as a sub-rent or sub-contract supplier for an opportunity item asset.
Input
Output
weight
weightReturns the weight for an opportunity item asset's related opportunity item.
Input
Output
weight_total
weight_totalReturns the weight total for an opportunity item asset. This may differ from the opportunity item replacement charge depending on the quantity.
Input
Output
Last updated
Was this helpful?