Opportunity

The opportunity (order) object contains information held against an opportunity record.

Opportunities are the beginning and the end of the order process in Current RMS. They are one of the most complex records, with many related records like opportunity items, opportunity item assets, and opportunity costs.

Opportunity documents are the most commonly used documents. Quotations, rental agreements, delivery notes, and other documents are printed from the opportunity module.

Because the opportunity module is so complex, it touches lots of other records so there are many ways of accessing opportunity objects.

Document layouts

The order object can be accessed in document layouts created against the following modules:

Opportunity

{{ order.name }}

Project

Returns opportunity items for opportunities on a project.

{% for order in project.opportunities %}
  {{ order.name }}
{% endfor %}

Invoice

Returns opportunity items for opportunities that are sources on a particular invoice.

{% for order in invoice.sources %}
  {{ order.name }}
{% endfor %}

Member

Returns opportunity items for opportunities linked to a particular organization.

Returns opportunities items for active opportunities linked to a particular organization.

Quarantine

Returns opportunity item objects for the source opportunity of a quarantine.

Returns opportunity item objects for the opportunity that a quarantined asset is next booked on.

Discussion templates

The item object can be accessed in discussion templates created against the following modules:

Opportunity

Project

Returns opportunity items for opportunities on a project.

Invoice

Returns opportunity items for opportunities that are sources on a particular invoice.

Member

Returns opportunity items for opportunities linked to a particular organization.

Returns opportunities items for active opportunities linked to a particular organization.

Quarantine

Returns opportunity item objects for the source opportunity of a quarantine.

Returns opportunity item objects for the opportunity that a quarantined asset is next booked on.

activities

Returns activity objects for the activities relating to the opportunity.

Input

Output

Activity

actual_cost_total

Returns the actual cost total against an opportunity.

The actual cost total is calculated by totaling actual costs.

Input

Output

Use the currency filter or a number filter to change the way that the number is formatted.

assets

Returns opportunity item asset objects for items on the opportunity.

Input

Output

Opportunity item assets

attachments

Returns attachment objects for attachments stored against an opportunity.

Input

Output

Attachments

billing_address

Returns the opportunity billing address.

Input

Output

billing_address_detail

Returns address objects for the billing address against the opportunity.

Input

Output

Address detail

billing_address_name

Returns the name of the billing address against the opportunity.

Input

Output

charge_excluding_tax_total

Returns the opportunity charge total excluding tax.

Input

Output

charge_including_tax_total

Returns the opportunity charge total including tax.

Input

Output

charge_total

Returns the opportunity charge total.

This may be including or excluding tax depending on the value of the “Catalog Prices” setting in System Preferences.

Input

Output

chargeable_days

Returns the number of chargeable days for the opportunity.

Input

Output

collection_address

Returns the opportunity collection address.

You may also use the venue object (below).

Input

Output

collection_address_detail

Returns address objects for the collection address against the opportunity.

Input

Output

Address detail

collection_address_name

Returns the name of the collection address against the opportunity.

You may also use the venue object (below).

Input

Output

combined_discount_total

Returns the total discount from deal pricing and percentage discounting on the opportunity.

Input

Output

consolidated_container_item_assets

Returns consolidated asset objects for assets on the opportunity, grouped by container.

Input

Output

Container names are converted to uppercase. Use a string filter to change the way that the text is formatted.

consolidated_items

Returns consolidated item objects for items on the opportunity.

Input

Output

Consolidated opportunity items

consolidated_principal_items

Returns consolidated item objects for principal items on an opportunity.

Similar to the consolidated_items object (above), but only returns principal items. Accessories are not included.

Input

Output

Consolidated opportunity items

container_item_assets

Returns container asset objects for assets on an opportunity.

Input

Output

costs

Returns opportunity cost objects for costs on an opportunity.

Input

Output

Opportunity costs

customer_collecting

Returns true if the “Customer collecting” box is ticked against an opportunity; false otherwise.

Input

Output

customer_returning

Returns true if the “Customer returning‘ box is ticked against an opportunity; false otherwise.

Input

Output

deal_discount_total

Returns the total discount from deal pricing on the opportunity.

Input

Output

deal_exists?

Returns true if the opportunity has deal-priced groups or a deal price; false otherwise.

Input

Output

delivery_address

Returns the opportunity delivery address.

You may also use the venue object (below).

Input

Output

delivery_address_detail

Returns address objects for the delivery address against the opportunity.

Input

Output

Address detail

delivery_address_name

Returns the name of the delivery address against the opportunity.

You may also use the venue object (below).

Input

Output

description

Returns the opportunity (internal) description.

Input

Output

discount_total

Returns the total discount from percentage discounting on the opportunity.

Input

Output

discussion_email_address

Returns the discussion email address for the opportunity.

Input

Output

ends_at

Returns the end date and time for the opportunity. You may also use charge_ends_at.

Input

Output

Use a date filter to change the way that the date is formatted.

external_description

Returns the opportunity external description.

Input

Output

has_discount?

Returns true if the opportunity has percentage based discounts; false otherwise.

Input

Output

has_invoices?

Returns true if the opportunity has linked invoices; false otherwise.

Input

Output

image_attachments

Returns attachment objects for attachments stored against an opportunity where the attachment file type is an image.

Input

Output

Attachments

id

Returns the opportunity ID.

Input

Output

invoiced

Returns true if the opportunity “Invoiced‘ toggle is set to YES; otherwise false.

Input

Output

invoices

Returns invoice objects for invoices linked to the opportunity.

Input

Output

items

Returns opportunity item objects for items on the opportunity.

Input

Output

Opportunity items

items_sorted_by_principal

Investigate further.

Input

Output

Opportunity items

items_sorted_by_tag

Investigate further

name

Returns the opportunity subject.

Input

Output

number

Returns the opportunity number.

nil if the opportunity is an inquiry or a draft.

Input

Output

open_ended_rental

Returns true if the “Open Ended Rental” toggle against the opportunity is set to YES; otherwise false.

Input

Output

opportunity_has_deal?

Returns true if the entire opportunity has a deal; false otherwise.

This will only return true if the entire opportunity has a deal; it will return false if there are deal priced groups. Use deal_exists? (above) to check if there's a deal anywhere on the opportunity, including deal priced groups.

Input

Output

ordered_at

Returns the date entered in the opportunity “Document Date” field.

Input

Output

original_charge_excluding_tax_total

Returns the opportunity charge excluding tax total before deal pricing was applied.

Input

Output

original_charge_including_tax_total

Returns the opportunity charge including tax total before deal pricing was applied.

Input

Output

original_charge_total

Returns the opportunity charge total before deal pricing was applied.

Input

Output

original_discount_total

Returns the opportunity discount total before deal pricing was applied.

Input

Output

original_rental_charge_total

Returns the opportunity rental charge total before deal pricing was applied.

Input

Output

original_sale_charge_total

Returns the opportunity sale charge total before deal pricing was applied.

Input

Output

original_service_charge_total

Returns the opportunity service charge total before deal pricing was applied.

Input

Output

original_surcharge_total

Returns the opportunity surcharge total before deal pricing was applied.

Input

Output

original_tax_total

Returns the opportunity tax total before deal pricing was applied.

Input

Output

owner

Returns user objects with information about the user who owns the opportunity.

Input

Output

User

part_invoice_charge_total

Returns the total of part invoices against the opportunity.

Input

Output

participants

Returns contact, organization, user, vehicle, or venue objects for participants on the opportunity.

Input

Output

predicted_cost_total

Returns the predicted cost total for an opportunity.

The predicted cost total is calculated by totalling actual costs where possible. Where an actual cost hasn't been set, the provisional cost is used.

Input

Output

product_assets

Returns opportunity item asset objects for products on the opportunity.

Similar to the assets object (above), but only returns product assets. Does not return service booking resource allocations.

Input

Output

Opportunity item assets

products

Returns opportunity item objects for products on the opportunity.

Similar to the items object (above), but only returns product opportunity items. Does not return services.

Input

Output

Opportunity items

project

Returns project objects for the project that the opportunity is part of.

empty if the opportunity isn't linked to a project.

Input

Output

Project

project_name

Returns the name of the project that the opportunity is a part of.

nil if the opportunity isn't linked to a project.

Input

Output

provisional_cost_total

Returns the provisional cost total for an opportunity.

The provisional cost total is calculated by totaling provisional costs.

Input

Output

purchase_orders

Returns purchase order objects for purchase orders linked to the opportunity.

Input

Output

Purchase order

quote_invalid_at

Returns the value of the opportunity "Quotation valid until" field.

nil if the opportunity isn't a quotation.

Input

Output

reference

Returns the value of the opportunity customer reference.

Input

Output

rental_charge_total

Returns the rental charge total for an opportunity.

Input

Output

rentals

Investigate further

replacement_charge_total

Returns the replacement charge total for the opportunity.

Input

Output

sale_charge_total

Returns the sale charge total for an opportunity.

Input

Output

sales

Investigate further

schedule_type_is_extended?

Returns true if the opportunity uses the extended scheduler; false otherwise.

The scheduler type is set in System Preferences, but the scheduler type on existing opportunities won't be updated.

Input

Output

schedule_type_is_extended?

Returns true if the opportunity uses the extended scheduler; false otherwise.

The scheduler type is set in System Preferences, but the scheduler type on existing opportunities won't be updated.

Input

Output

schedule_type_is_standard?

Returns true if the opportunity uses the standard scheduler; false otherwise.

The scheduler type is set in System Preferences, but the scheduler type on existing opportunities won't be updated.

Input

Output

service_charge_total

Returns the service charge total for an opportunity.

Input

Output

services

Investigate further

starts_at

Returns the start date and time for the opportunity. You may also use charge_starts_at.

Input

Output

state

Returns the opportunity state code.

Code

State name

0

Inquiry

1

Draft

2

Quotation

3

Order

Input

Output

state_name

Returns the opportunity state name.

State names are in the language set against your user profile.

  • Inquiry

  • Draft

  • Quotation

  • Order

Input

Output

status

Returns the opportunity status code.

Code

Status name

0

Open

1

Provisional

5

Reserved

20

Active

40

Completed

50

Canceled

60

Lost

70

Dead

80

Postponed

Input

Output

status_name

Returns the opportunity status name.

Status names are in the language set against your user profile.

  • Open

  • Provisional

  • Reserved

  • Active

  • Completed

  • Canceled

  • Lost

  • Dead

Input

Output

store

Returns store objects for the store against the opportunity.

Input

Output

Store

supplier_item_assets

Returns a list of sub-rented opportunity item assets sorted by supplier.

surcharge_total

Returns the surcharge total for an opportunity.

This isn't returned in the rental charge total object (above).

Input

Output

tax_class_name

Returns the opportunity tax class.

This may differ from the organization tax class.

Input

Output

tax_total

Returns the opportunity tax total.

Input

Output

use_chargeable_days

Returns true if the "Use Chargeable Days" toggle against the opportunity is set to YES; otherwise false.

Input

Output

venue

Returns venue objects for the venue against the opportunity.

Input

Output

weight_total

Returns the opportunity weight total.

Input

Output

Use the company object weight unit to print the weight unit for your system.

Extended scheduler dates

prep_starts_at

Returns the “Prep“ start date and time for the opportunity.

Input

Output

prep_ends_at

Returns the “Prep“ end date and time for the opportunity.

Input

Output

load_starts_at

Returns the “Load“ start date and time for the opportunity.

Input

Output

load_ends_at

Returns the “Load“ end date and time for the opportunity.

Input

Output

deliver_starts_at

Returns the “Delivery” start date and time for the opportunity.

Input

Output

deliver_ends_at

Returns the “Delivery” end date and time for the opportunity.

Input

Output

setup_starts_at

Returns the “Setup” start date and time for the opportunity.

Input

Output

setup_ends_at

Returns the “Setup” end date and time for the opportunity.

Input

Output

show_starts_at

Returns the “In Use” start date and time for the opportunity.

Input

Output

show_ends_at

Returns the “In Use” end date and time for the opportunity.

Input

Output

takedown_starts_at

Returns the “Take Down“ start date for an opportunity.

Input

Output

takedown_ends_at

Returns the “Take Down“ end date for an opportunity.

Input

Output

collect_starts_at

Returns the “Pickup“ start date for an opportunity.

Take care not to confuse with the delivery date when customer collection is true.

Input

Output

collect_ends_at

Returns the “Pickup“ end date for an opportunity.

Take care not to confuse with the delivery date when customer collection is true.

Input

Output

unload_starts_at

Returns the “Unload“ start date for an opportunity.

Input

Output

unload_ends_at

Returns the “Unload“ end date for an opportunity.

Input

Output

deprep_starts_at

Returns the “De-Prep“ start date for an opportunity.

Input

Output

deprep_ends_at

Returns the “De-Prep“ ends date for an opportunity.

Input

Output

Last updated

Was this helpful?