{//% unless portal.user.is_agent %} Tickets
Welcome
Login Submit a Ticket News {//% endunless %}

Cost Formula

 
In this (master-detail) dialog user can define formulas that shall be used during calculations. 
 
These formulas are some kind of "predefined" formulas than can be selected in the Cost Wizard dialog so one does not need to enter the formula again (but can select the desired one).
 
 
Name:
Mandatory
Comment:
Will be visible in the Cost wizard dialog to help user to select desired formula from the list
Expression:
The real formula that shall be used for calculation the costs
 
 
 
 
Expression in detail:
 
Expression is a "reduced" mathematical expression/formula that can be build using:
brackets: 
"(" (opening bracket), ")" (closing bracket)
numerical constants
i.e. 1, 2, 3, 15, 9.4579
simple mathematical operators:
+, -, /, *
"cost definition" name 
i.e. Fuel
 
 
 
 
Correct expression examples:
Fuel
2 * Fuel
(Fuel + TakeOff) * 2
(3 * 1.4) + 17 * Fuel - 3 * (5 + TakeOff)
 
Incorrect expression examples:
a
x * y
{[(3 + 2) - (1 * 2)] * 4} + 5
2 * [Fuel]
([Fuel] + [TakeOff]) * 2
 
 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.