Table
DOMCostCalculationCriteria
Calculation Criteria
Defines how a delivery cost is worked out for a cost factor. Each record is for a company, a mode of delivery and a distance range. It states whether the cost is fixed or per distance unit, and which distance type and unit apply.
- Table name
DOMCostCalculationCriteria- Module
Commerce transactions and orders- Table group
Group- Table type
Regular- Data per company
No- Configuration key
None- Primary index
None- Replacement key
CalculationCriteriaIdx- Key fields
LinkedDataArea, DlvMode, CostFactor, DOMDistanceTo, DOMDistanceFrom, DOMCalculationValue- Model
DOM
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LinkedDataAreaCompany (legal entity) that the delivery mode belongs to. | StringSelectableDataArea | No | CompanyInfo.DataArea | None |
DlvModeMode of delivery that the criteria apply to. | StringDlvModeId | No | DlvMode.Code | None |
CostFactorCost factor that these criteria belong to, from the DOM cost factors table. | String (32)DOMCostFactorId | No | DOMCostFactor.CostFactorId | None |
DOMDistanceToUpper limit of the distance range. | RealDOMCostCalculationCriteriaDistanceIntervalBound | No | None | |
DOMDistanceFromLower limit of the distance range. | RealDOMCostCalculationCriteriaDistanceIntervalBound | No | None | |
DOMCalculationValueCost value used by the criteria. Currency is not stated in the metadata. | RealDOMCostCalculationCriteriaValue | No | None | |
DOMCalculationTypeWhether the cost is a fixed amount or is charged per distance unit. | EnumDOMCalculationTypes (enum) | Yes | None | |
DOMDistanceCalculationTypeKind of distance used: aerial distance or road distance. | EnumDOMDistanceCalculationType (enum) | Yes | None | |
DOMDistanceUnitsUnit of distance: miles or kilometres. | EnumDOMDistanceType (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (1)
CalculationCriteriaIdxReplacement keyLinkedDataArea,DlvMode,CostFactor,DOMDistanceTo,DOMDistanceFrom,DOMCalculationValueUnique.
Relations (3)
Each relation joins DOMCostCalculationCriteria to another table on the fields shown.
CostFactor→DOMCostFactorJoin on
CostFactor = DOMCostFactor.CostFactorIdMany DOMCostCalculationCriteria records → exactly one DOMCostFactor record
DataArea→CompanyInfoJoin on
LinkedDataArea = CompanyInfo.DataAreaMany DOMCostCalculationCriteria records → exactly one CompanyInfo record
DlvMode→DlvModeJoin on
DlvMode = DlvMode.Code,LinkedDataArea = DlvMode.DataAreaIdZero or one DOMCostCalculationCriteria record → exactly one DlvMode record
Get this data out
No public entity reads from DOMCostCalculationCriteria. Its data is only reachable through the application, a custom entity or a database export.
Need help with DOMCostCalculationCriteria in a report, an integration or a migration? Talk to Dr Dynamics.