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 descriptionType / EDT / enumMandatoryReferencesIn public entities
LinkedDataAreaCompany (legal entity) that the delivery mode belongs to.String
SelectableDataArea
NoCompanyInfo.DataAreaNone
DlvModeMode of delivery that the criteria apply to.String
DlvModeId
NoDlvMode.CodeNone
CostFactorCost factor that these criteria belong to, from the DOM cost factors table.String (32)
DOMCostFactorId
NoDOMCostFactor.CostFactorIdNone
DOMDistanceToUpper limit of the distance range.Real
DOMCostCalculationCriteriaDistanceIntervalBound
NoNone
DOMDistanceFromLower limit of the distance range.Real
DOMCostCalculationCriteriaDistanceIntervalBound
NoNone
DOMCalculationValueCost value used by the criteria. Currency is not stated in the metadata.Real
DOMCostCalculationCriteriaValue
NoNone
DOMCalculationTypeWhether the cost is a fixed amount or is charged per distance unit.Enum
DOMCalculationTypes (enum)
YesNone
DOMDistanceCalculationTypeKind of distance used: aerial distance or road distance.Enum
DOMDistanceCalculationType (enum)
YesNone
DOMDistanceUnitsUnit of distance: miles or kilometres.Enum
DOMDistanceType (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (1)

Relations (3)

Each relation joins DOMCostCalculationCriteria to another table on the fields shown.

  • CostFactor → DOMCostFactor

    Join on CostFactor = DOMCostFactor.CostFactorId

    Many DOMCostCalculationCriteria records → exactly one DOMCostFactor record

  • DataArea → CompanyInfo

    Join on LinkedDataArea = CompanyInfo.DataArea

    Many DOMCostCalculationCriteria records → exactly one CompanyInfo record

  • DlvMode → DlvMode

    Join on DlvMode = DlvMode.Code, LinkedDataArea = DlvMode.DataAreaId

    Zero 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.

Email sales@drdynamics.co.uk