Product
The product object contains information about a product record.
Products in Current RMS are things you rent and sell to customers. They're generally physical, tangible things that you stock.
Document layouts
The product object can be accessed in document layouts created against the following records:
Product
{{ product.name }}Opportunity
{% for item in order.products %}
{% if item.is_item? %}
{{ item.product.name }}
{% endif %}
{% endfor %}Quarantine
{{ quarantine.product.name }}Inspection result
{{ inspection_result.product.name }}Inventory check
{{ stock_check.product.name }}Purchase order
{% for item in order.items %}
{% if item.is_item? and item.is_product? %}
{{ item.product.name }}
{% endif %}
{% endfor %}Invoice
Where a service item has been added directly to an invoice:
{% for item in invoice.items %}
{% if item.is_item? %}
{% if item.invoiceable_type == "Item" %}
{{ item.invoicable_object.name }}
{% endif %}
{% endif %}
{% endfor %}Where an invoice item is linked to an opportunity item:
{% for item in invoice.items %}
{% if item.is_item? %}
{% if item.invoiceable_type == "Opportunity Item" %}
{% if item.invoiceable_object.is_product? %}
{{ item.invoiceable_object.service.name }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}If the original opportunity or opportunity item is deleted, the link between the invoice item and the opportunity item is broken and you won't be able to access service objects in this way.
Discussion templates
The product object can be accessed in discussion templates created against the following records:
Product
{{ product.name }}Opportunity
{% for item in opportunity.products %}
{% if item.is_item? %}
{{ item.product.name }}
{% endif %}
{% endfor %}Quarantine
{{ quarantine.product.name }}Inspection result
{{ inspection_result.product.name }}Inventory check
{{ stock_check.product.name }}Purchase order
{% for item in purchase_order.items %}
{% if item.is_item? and item.is_product? %}
{{ item.product.name }}
{% endif %}
{% endfor %}Invoice
Where a service item has been added directly to an invoice:
{% for item in invoice.items %}
{% if item.is_item? %}
{% if item.invoiceable_type == "Item" %}
{{ item.invoicable_object.name }}
{% endif %}
{% endif %}
{% endfor %}Where an invoice item is linked to an opportunity item:
{% for item in invoice.items %}
{% if item.is_item? %}
{% if item.invoiceable_type == "Opportunity Item" %}
{% if item.invoiceable_object.is_product? %}
{{ item.invoiceable_object.service.name }}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}If the original opportunity or opportunity item is deleted, the link between the invoice item and the opportunity item is broken and you won't be able to access service objects in this way.
accessories
accessories Returns product accessory objects for accessory products against this product.
Input
<ul>
{% for accessory in product.accessories %}
<li>{{ accessory.name }}</li>
{% endfor %}
</ul>Output
• Pioneer HDJ2000 DJ Headphones
• XLR 10maccessory_only
accessory_only Returns true where this product is accessory only; false otherwise.
Input
{{ product.accessory_only }}Output
falseassets
assets Returns product asset objects for stock levels against a product.
Input
{% for asset in product.assets %}
{{ asset.asset_number }}
{% endfor %}Output
ABC-123attachments
attachmentsReturns attachment objects for attachments stored against a product.
Input
{% for attachment in product.attachments %}
{{ attachment.name }}
{% endfor %}Output
Ann Vealbarcode
barcode Where bulk or non-stock, returns the barcode set against a product.
To return a barcode number for a serialized asset, use the stock_level object.
Input
{{ product.barcode }}Output
BAR-001charging_periods
charging_periods Returns charging period objects for a rental charge against a product.
Input
{% for charge_period in product.charging_periods %}
{{ charge_period.name }}
{% endfor %}Output
daycountry_of_origin_code
Returns the country of origin set against a product.
Input
{{ product.country_of_origin_code }}Output
United Kingdomdescription
description Returns the description for a product.
Input
{{ product.description }}Output
Let there be light, and there was! Soft bright white light -- to be more precise -- illuminating your special event and making everyone feel cozy and warm.discountable?
discountable? Returns true if a product is discountable; false otherwise.
Input
{{ product.discountable? }}Output
truehas_accessories?
has_accessories? Returns true if a product has accessories; false otherwise.
Input
{{ product.has_accessories? }}Output
trueicon_url
icon_url Returns a URL pointing at a product's image. The full size image is returned.
Input
{{ product.icon_url }}Output
https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/icons/52/original/Logi_CREATE_Keyboard_Case_Blue.0.jpgid
id Returns a product's ID.
Input
{{ product.id }}Output
1image_attachments
image_attachments Returns attachment objects for attachments stored against a product. Only returns those that have a file type of image.
Input
{% for attachment in product.attachments %}
{{ attachment.attachment_url }}
{% endfor %}Output
https://s3.amazonaws.com/current-rms/f7b92d60-1421-0132-8004-0401207f6801/attachments/473/original/Ann_Veal.jpgis_bulk_stock?
is_bulk_stock? Returns true if a product is bulk; false otherwise.
Input
{{ product.is_bulk_stock? }}Output
trueis_non_stock?
is_non_stock? Returns true if a product is non-stock; false otherwise.
Input
{{ product.is_non_stock? }}Output
falseis_serialised_stock?
is_serialised_stock? Returns true if a product is serialized; false otherwise.
Input
{{ product.is_serialised_stock? }}Output
falsename
name Returns a product's name.
Input
{{ product.name }}Output
Pioneer XDJ RXpost_rent_unavailability
post_rent_unavailability Returns a product's post rent unavailability value.
A unit, i.e. your system availability period, is not returned.
Input
{{ product.post_rent_unavailability }}Output
1product_group
product_group Returns product group objects for a product's related product group.
Input
{{ product.product_group.description }}Output
Things that make noise.product_group_name
product_group_name Returns a product's related product group name.
Input
{{ product.product_group_name }}Output
Audiopurchase_cost_group
purchase_cost_group Returns the purchase cost group for a product.
Input
{{ product.purchase_cost_group }}Output
Salesrental_charge_period_name
rental_charge_period_name Returns the rental charge period name for a product.
Input
{{ product.rental_charge_period_name }}Output
dailyrental_price
rental_price Returns the rental price for a product.
Input
{{ product.rental_price }}Output
100.0rental_rate_definition_name
rental_rate_definition_name Returns the rental rate definition name against a product.
Input
{{ product.rental_rate_definition_name }}Output
Daily Raterental_revenue_group
rental_revenue_group Returns the rental revenue group against a product.
Input
{{ product.rental_revenue_group }}Output
Rentalreplacement_charge
replacement_charge Returns the replacement charge against a product.
Input
{{ product.replacement_charge }}Output
100.0sale_price
sale_price Returns the sale price for a product.
Input
{{ product.sale_price }}Output
1000.0sale_revenue_group
sale_revenue_group Returns the sale revenue group against a product.
Input
{{ product.sale_revenue_group }}Output
Salesstock_levels
stock_levels Returns stock level objects for stock levels against a product.
Input
{% for stock_level in product.stock_levels %}
{{ stock_level.asset_number }}
{% endfor %}Output
ABC-123sub_rental_cost_group
sub_rental_cost_group Returns the sub-rental cost group for a product.
Input
{{ product.sub_rental_cost_group }}Output
Sub-Rentalweight
weightReturns a product's weight.
Input
{{ product.weight }}Output
10.0Last updated
Was this helpful?