Calculated Discount Field Reference

The Calculated Discount object is responsible for storing information about all applied discounts for an order depending on the pricing procedure.


Object API name: orders__CalculatedDiscount__c


Field API Name Type Description

Calculation Method

orders__CalculationMethod__c

Picklist

The applied method of price calculation:

  • Increase

  • Decrease

Calculation Type

orders__CalculationTypeId__c

Lookup(Calculation Type)

Applied Calculation Type identifier.

Condition

orders__ConditionId__c

Lookup(Condition)

Condition identifier.

Condition Group

orders__ConditionGroupId__c

Lookup(ConditionGroup)

Condition Group from the Calculation Type used for discount calculation.

Condition Level

orders__ConditionLevelId__c

Lookup(Condition Level)

Condition level identifier.

Discount Rate (%)

orders__DiscountRatePercent__c

Percent(16, 2)

Discount value in percent.

Discount Rate (Amt)

orders__DiscountRateAmount__c

Number(16, 2)

Discount value in amount.

Order

orders__OrderId__c

Master-Detail (Order)

The order for which discount is calculated.

Order Line Item

orders__OrderLineItemId__с

Lookup (Order Line Item)

Order Line Item identifier.

Price Calculation Log

orders__PriceCalculationLog__c

Long Text Area(32768)

Log of operations that occurred during the price calculation.

Pricing Procedure

orders__PricingProcedureId__c

Lookup(Pricing Procedure)

Applied Pricing Procedure identifier.

Record Type

RecordTypeId

Record Type

A log type:

  • Applied Condition stores all lookups that were used for each specified discount from orders__CalculationType__с and the value of this discount.

  • Calculation Log stores an overall calculation of all Calculation Type records according to the applied pricing procedure.

Reference Id

orders__RefereneId__c

Text(255) (External ID) (Unique Case Sensitive)

The Reference Id field is responsible for the deduplication logic and stores the pair of record Id and user Id. For more information, refer to Order Change Manager.

  • If the record has not yet been transferred from CT Mobile, the field contains the mobile temporary record Id and the user identifier.

    For example, a06-AF3AA67B-EA24-4DAB-9C8A-9B70357DAB830055J000001L7aTQAS, where a06-AF3AA67B-EA24-4DAB-9C8A-9B70357DAB83 is the temporary record Id and 0055J000001L7aTQAS is the user identifier.

  • If the record was transferred to Salesforce, the field contains the Salesforce record Id and the user identifier.

    For example, a0g5w00000EQJi1AAH0055J000001L7aTQAS, where a0g5w00000EQJi1AAH is the Salesforce record Id and 0055J000001L7aTQAS is the user identifier.

Unit of Measure

orders__UnitOfMeasure__c

Picklist

Unit of measure used for price calculation:

  • Percent

  • Amount

``