Calculation Type Field Reference
The Calculation Type object stores all data about a particular type of discount calculation.
Object API name: orders__CalculationType__c
| Field | API Name | Type | Description | ||
|---|---|---|---|---|---|
Apply Condition Type |
orders__ApplyConditionType__c |
Picklist |
Select the type of work with the Condition records.
Available values:
Available only for the Condition record type and only with the Web Service enabled. |
||
Calculation Method |
orders__CalculationMethod__c |
Picklist |
The applied method of price calculation:
|
||
Condition Fields List |
orders__ConditionFieldsList__c |
Long Text Area(32768) |
List of fields that are available for the user. The list includes all child fields for Condition Group and Condition objects. The field is automatically updated based on the Condition Fields Update Type value. |
||
Condition Fields Update Type |
orders__ConditionFieldsUpdateType__c |
Picklist |
The way of updating the conditions fields list:
|
||
Condition Recalculation Fields |
orders__ConditionRecalculationFields__c |
Long Text Area(32768) |
Specify the API names of fields that will initiate the matching conditions search for Order Line Item records from the beginning when changed.
|
||
Discount Recalculation Fields |
orders__DiscountRecalculationFields__c |
Long Text Area(32768) |
Specify the API name of a field in JSON format that, when changed, will initiate the recalculation of a discount within each condition.
The same recalculation logic is applied when the Quantity field is changed. |
||
External ID |
orders__ExternalId__c |
Text(255) (External ID) (Unique Case Sensitive) |
Calculation Type external identifier. |
||
Field Search Based On |
orders__FieldSearchBasedOn__c |
Picklist |
Determines if Condition Fields will be searched starting from Order Line Item or Delivery Line Item. Available values:
This field applies only to Web Service calculations and does not affect the internal calculator. Pricing procedures with this field will be ignored and excluded from the Price Tag logic. |
||
Force Condition Fields Update |
orders__IsForceConditionFieldsUpdate__c |
Checkbox |
If selected, the Condition Fields List field will be updated after the Condition object fields were changed on the child records. The checkbox is required if the Batch update mode is selected in Condition Field Update Type. |
||
Need Condition Fields Force Update |
orders__isNeedConditionFieldsUpdate__c |
Checkbox (hidden) |
Selected, if the Condition Fields Update Type field is set to Batch update and the Force Condition Fields Update checkbox is set to active. It is unchecked after the update process is finished.
|
||
Level Based On |
orders__LevelBasedOn__c |
Picklist |
Select the object where the calculation will be performed:
If the Delivery Line Item is selected, the processing of the Condition records will be the same as for the Order Line Item object and the conditions will be calculated based on values on the Order Line Item records. |
||
Level Formula |
orders__LevelFormula__c |
Long Text Area(32768) |
The formula in JSON format is used to calculate quantity across multiple fields. The source object for formula fields is defined in the Level Based On field. It is possible to use fields with the Number and Currency types to calculate quantity or amount, and the values from these fields can be used for the discount calculation based on the entire order or the previous deliveries. In this case, an additional step should be specified in the Pricing Procedure to process this summary.
|
||
Promo Related |
orders__IsPromoRelated__c |
Checkbox |
If selected, promos can be linked to this calculation type. |
||
Record Type |
RecordType |
Record Type |
Available values:
|
||
Unit of Measure |
orders__UnitOfMeasure__c |
Picklist |
Unit of measure used for price calculation:
|