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
  • Objects that return opportunity return item assets
  • Example
  • asset_number
  • damage_description
  • quantity_damaged
  • quantity_lost
  • quantity_ok
  • quantity_returned
  • quantity_sold
  • return_at

Was this helpful?

  1. Opportunities

Opportunity return item assets

The opportunity return item asset object holds information about check-ins against an opportunity item asset.

PreviousOpportunity costsNextConsolidated opportunity items

Last updated 4 years ago

Was this helpful?

An opportunity return item asset is a record of a check-in. It lets you know how many units were checked-in as damaged, lost, ok, returned, or sold against an opportunity item asset.

Objects that return opportunity return item assets

You can access opportunity return item assets against the opportunity item asset object.

{% for asset in order.product_assets %}
  {% for return in asset.return_assets %} 
    {{ return.return_at }}
  {% endfor %}
{% endfor %}

Example

Print from an order with finalized stock to see how the opportunity return item assets object works.

asset_number

Returns a return item asset's asset number.

Input

{{ return.asset_number }}

Output

APP-101

damage_description

Returns a return item asset's damage description.

Input

{{ return.damage_description }}

Output

Dropped when loading.

quantity_damaged

Returns the quantity damaged for a return item asset.

Input

{{ return.quantity_damaged }}

Output

0.0

quantity_lost

Returns the quantity lost for a return item asset.

Input

{{ return.quantity_lost }} 

Output

0.0

quantity_ok

Returns the quantity OK for a return item asset.

Input

{{ return.quantity_ok }}

Output

1.0

quantity_returned

Returns the quantity returned for a return item asset. For sales only.

Input

{{ return.quantity_returned }} 

Output

0.0

quantity_sold

Returns the quantity sold for a return item asset. For sales only.

Input

{{ return.quantity_returned }}

Output

0.0

return_at

Returns an opportunity return item asset's check-in date.

Input

{{ return.return_at }}

Output

2021-05-23 17:00:00 +0100	
Opportunity item assets
1KB
return_assets.txt
Opportunity return item assets