Table

TMSItemConstraint

Item constraint

Defines item constraints for transportation, identified by the item constraint code. A constraint can be narrowed by item, product filters, warehouse, site, hub, carrier, carrier service, method and mode. It has an action of Warn or Restrict and an effective date range.

Table name
TMSItemConstraint
Module
Transportation management
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
ItemConstraintCodeIdx
Replacement key
ItemConstraintCodeIdx
Key fields
ItemConstraintCode
Model
Foundation

Fields (26)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ItemConstraintCodeUnique code that identifies the item constraint.String (20)
TMSItemConstraintCode
YesNone
ActionWhat the constraint does when it applies: Warn or Restrict.Enum
TMSAction (enum)
YesNone
CarrierCodeShipping carrier the constraint applies to.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeNone
CarrierServiceCodeCarrier service the constraint applies to.String (20)
TMSCarrierServiceCode
NoNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
EffectiveUTCDateTimeFromDate and time, in UTC, from which the constraint is effective.UtcDateTime
TMSEffectiveUTCDateTimeFrom
NoNone
EffectiveUTCDateTimeToDate and time, in UTC, at which the constraint stops being effective.UtcDateTime
TMSEffectiveUTCDateTimeTo
NoNone
FilterCode1First product filter code used to select items for the constraint.String
TMSFilterCode
NoNone
FilterCode2Second product filter code used to select items for the constraint.String
TMSFilterCode
NoNone
FilterCode3Third product filter code used to select items for the constraint.String
TMSFilterCode
NoNone
FilterCode4Fourth product filter code used to select items for the constraint.String
TMSFilterCode
NoNone
HubMasterCodeHub the constraint applies to.String (20)
TMSHubMasterCode
NoTMSHubMaster.HubMasterCodeNone
InventLocationIdWarehouse the constraint applies to.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventSiteIdSite the constraint applies to.String
InventSiteId
NoInventSite.SiteIdNone
ItemIdItem the constraint applies to.String (20)
TMSItemId
NoInventTable.ItemIdNone
MethodCodeTransportation method the constraint applies to.String (20)
TMSMethodCode
NoTMSMethod.MethodCodeNone
ModeCodeTransportation mode the constraint applies to.String (20)
TMSModeCode
NoTMSMode.ModeCodeNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
NameName of the item constraint.String (60)
TMSName
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 (12)

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

  • FilterCode1 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code1, FilterCode1 = WHSFilters.FilterNum

    Many TMSItemConstraint records → zero or one WHSFilters record

  • FilterCode2 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code2, FilterCode2 = WHSFilters.FilterNum

    Many TMSItemConstraint records → zero or one WHSFilters record

  • FilterCode3 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code3, FilterCode3 = WHSFilters.FilterNum

    Many TMSItemConstraint records → zero or one WHSFilters record

  • FilterCode4 → WHSFilters

    Join on WHSFilters.FilterTitle = WHSFilterTitle::Code4, FilterCode4 = WHSFilters.FilterNum

    Many TMSItemConstraint records → zero or one WHSFilters record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many TMSItemConstraint records → zero or one InventLocation record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many TMSItemConstraint records → zero or one InventSite record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many TMSItemConstraint records → exactly one InventTable record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSItemConstraint records → exactly one TMSCarrier record

  • TMSCarrierService → TMSCarrierService

    Join on CarrierServiceCode = TMSCarrierService.CarrierServiceCode

    Many TMSItemConstraint records → exactly one TMSCarrierService record

  • TMSHubMaster → TMSHubMaster

    Join on HubMasterCode = TMSHubMaster.HubMasterCode

    Many TMSItemConstraint records → exactly one TMSHubMaster record

  • TMSMethod → TMSMethod

    Join on MethodCode = TMSMethod.MethodCode

    Many TMSItemConstraint records → exactly one TMSMethod record

  • TMSMode → TMSMode

    Join on ModeCode = TMSMode.ModeCode

    Many TMSItemConstraint records → exactly one TMSMode record

Get this data out

No public entity reads from TMSItemConstraint. Its data is only reachable through the application, a custom entity or a database export.

Need help with TMSItemConstraint in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk