Opportunity costs
In Current RMS, you may set costs up against your products and services. When you add items to an opportunity, Current will automatically cost your opportunity and calculate profitability for you.
Costs are related to opportunity item assets. You can add and change costs on the Costs view on an opportunity.
Document layouts
The cost object can be accessed in document layouts against the following modules:
Opportunity
{% for cost in order.costs %}
{{ cost.subject }}
{% endfor %}Against an opportunity item asset:
{{ asset.cost.subject }}Purchase order
{% for item in order.items %}
{% if item.is_item? %}
{{ item.opportunity_cost.subject }}
{% endif %}
{% endfor %}Discussion templates
The cost object can be accessed in discussion templates against the following modules:
Opportunity
Against an opportunity item asset:
Purchase order
actual_cost
actual_cost Returns an opportunity cost's actual cost.
Input
Output
asset
asset Returns opportunity item asset objects for an opportunity cost's related asset.
Input
Output
Opportunity item assetsattachments
attachments Returns attachment objects for an opportunity cost.
Input
Output
Attachmentschargeable_days
chargeable_daysReturns an opportunity cost's chargeable days.
Input
Output
charging_periods
charging_periodsReturns charging period objects for an opportunity cost.
Input
Output
Charging periodcost_date
cost_date Returns an opportunity cost's date.
For sub-rentals and purchases, this is the start date of the opportunity.
For sub-contracts and services, this is the start date of the related service opportunity item.
For manual costs, this is the date you set against the cost when creating it.
Input
Output
cost_group_name
cost_group_name Returns an opportunity cost's cost group name.
Configure cost groups in System Setup > Cost Groups.
Input
Output
cost_type_name
cost_type_name Returns an opportunity cost's cost type name.
Manual
Purchase
Service
Sub-Contract
Sub-Rental
Cost type names are returned in your locale language, set against your user profile.
Input
Output
description
descriptionReturns an opportunity cost's description. This is called a note in the web interface.
Input
Output
ends_at
ends_at Returns an opportunity cost's end date.
For sub-rentals and purchases, this is the end date of the opportunity.
For sub-contracts and services, this is the start date of the related service opportunity item.
For manual costs, this is the date you set against the cost when creating it.
Input
Output
id
id Returns an opportunity cost's ID.
Input
Output
image_attachments
image_attachmentsReturns attachment objects for an opportunity cost. Only returns those that have a file type of image.
Input
Output
manual_cost?
manual_cost?Returns true where an opportunity cost is a manual cost; false otherwise.
Input
Output
price
price Returns an opportunity cost's price.
When working with automatic costs, the price is used to calculate the provisional cost total. Returns 0.0 for manual costs.
Input
Output
price_unit
price_unitReturns an opportunity cost's price unit. Used for sub-rentals only.
Input
Output
provisional_cost
provisional_cost Returns an opportunity cost's provisional cost.
Automatic costs are entered as provisional by the system. This is because you might like to 'correct' them by adding an actual cost.
When creating a manual cost, you may specify the provisional and actual costs.
Input
Output
purchase_order
purchase_order Returns purchase order objects for an opportunity cost.
Input
Output
Purchase orderquantity
quantityReturns an opportunity cost's quantity.
Manual costs return 1.0.
Input
Output
reference
referenceReturns an opportunity cost's reference. Only returned for manual costs.
Input
Output
service_unit_name
service_unit_nameReturns an opportunity cost's service unit name.
Input
Output
starts_at
starts_atReturns an opportunity cost's start date.
For sub-rentals and purchases, this is the start date of the opportunity.
For sub-contracts and services, this is the start date of the related service opportunity item.
For manual costs, this is the date you set against the cost when creating it.
Input
Output
subject
subjectReturns an opportunity cost's subject.
For automatic costs, this is the name of the related opportunity item.
For manual costs, this is the name of the subject you enter when you create a cost.
Input
Output
supplier
supplierReturns organization, contact, or vehicle objects for an opportunity cost's related supplier.
Input
Output
People & Organizationssupplier_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
supplier_reference
supplier_referenceReturns an opportunity cost's supplier reference. Only returned for manual costs.
Input
Output
unit_charge_amount
unit_charge_amountReturns an opportunity cost's unit charge amount.
The unit charge is the price for one unit.
Input
Output
Last updated
Was this helpful?