Table

TMSDiscountTable

Discount

Holds discount rules for transportation. A rule can be limited by carrier, service, customer or vendor, destination, warehouse, site, weight, freight class and zone. It also sets the result type, rate, percentage, minimum charge and effective dates. It has no defined key.

Table name
TMSDiscountTable
Module
Transportation management
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
RecId
Replacement key
None
Key fields
None
Model
Foundation

Fields (40)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CarrierCodeCode of the shipping carrier the discount applies to.String (20)
TMSCarrierCode
NoTMSCarrier.CarrierCodeNone
CarrierServiceCodeCode of the carrier service the discount applies to.String (20)
TMSCarrierServiceCode
NoNone
ClassHighUpper limit of the LTL freight class range.Real
WHSClass
NoNone
ClassLowLower limit of the LTL freight class range.Real
WHSClass
NoNone
CountryRegionISOCodeTwo-letter ISO code of the country or region.String (2)
TMSCountryRegionISOCode
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
CurrencyCodeCurrency for the discount amounts.String (3)
CurrencyCode
YesCurrency.CurrencyCodeNone
CustAccountCustomer account the discount is set for.String (20)
CustAccount
NoCustTable.AccountNumNone
CustGroupIdCustomer group the discount is set for.String
CustGroupId
NoCustGroup.CustGroupNone
CustInvoiceAccountInvoice account of the customer.String (20)
CustInvoiceAccount
NoCustTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DestCountryRegionDestination country or region.String
TMSCountryRegion
NoLogisticsAddressCountryRegion.CountryRegionIdNone
DestPostalCodeHighEnd of the destination ZIP or postal code range.String
TMSPostalCode
NoNone
DestPostalCodeLowStart of the destination ZIP or postal code range.String
TMSPostalCode
NoNone
DestStateDestination state.String
TMSState
NoNone
DirectionShipping direction: none, inbound or outbound.Enum
TMSDirection (enum)
NoNone
DiscountResultTypeTells if the discount result is a percentage or an amount.Enum
TMSDiscountResultType (enum)
NoNone
DiscountTypeDiscount type: customer, shipper or none.Enum
TMSDiscountType (enum)
YesNone
EffectiveUTCDateTimeFromDate and time, in UTC, when the discount starts to apply.UtcDateTime
TMSEffectiveUTCDateTimeFrom
YesNone
EffectiveUTCDateTimeToDate and time, in UTC, when the discount stops applying.UtcDateTime
TMSEffectiveUTCDateTimeTo
YesNone
FeeRate value for the discount.Real
TMSFee
NoNone
FreightTermCodeDelivery terms the discount is limited to.String
TMSFreightTermCode
NoDlvTerm.CodeNone
InventLocationIdWarehouse the discount is limited to.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventSiteIdSite the discount is limited to.String
InventSiteId
NoInventSite.SiteIdNone
MinimumChargeMinimum charge value for the discount.Real
TMSMinimumCharge
NoNone
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
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PercentPercentage value for the discount.Real
TMSPercent
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
VendAccountVendor account the discount is set for.String (20)
VendAccount
NoVendTable.AccountNumNone
VendGroupIdVendor group the discount is set for.String
VendGroupId
NoVendGroup.VendGroupNone
VendInvoiceAccountInvoice account of the vendor.String (20)
VendInvoiceAccount
NoVendTable.AccountNumNone
WeightHighMaximum weight for which the discount applies.Real
TMSWeightHigh
NoNone
WeightLowMinimum weight for which the discount applies.Real
TMSWeightLow
NoNone
ZoneName of the zone the discount is limited to.String (50)
TMSZone
NoNone
ZoneMasterCodeCode of the zone master the zone belongs to.String (20)
TMSZoneMasterCode
NoTMSZoneMaster.ZoneMasterCodeNone

Indexes (1)

Relations (14)

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

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many TMSDiscountTable records → exactly one Currency record

  • CustGroup → CustGroup

    Join on CustGroupId = CustGroup.CustGroup

    Many TMSDiscountTable records → zero or one CustGroup record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many TMSDiscountTable records → zero or one CustTable record

  • CustTableInvoice → CustTable

    Join on CustInvoiceAccount = CustTable.AccountNum

    Many TMSDiscountTable records → zero or one CustTable record

  • DlvTerm → DlvTerm

    Join on FreightTermCode = DlvTerm.Code

    Many TMSDiscountTable records → zero or one DlvTerm record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many TMSDiscountTable records → zero or one InventLocation record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many TMSDiscountTable records → zero or one InventSite record

  • LogisticsAddressCountryRegion → LogisticsAddressCountryRegion

    Join on DestCountryRegion = LogisticsAddressCountryRegion.CountryRegionId

    Many TMSDiscountTable records → zero or one LogisticsAddressCountryRegion record

  • TMSCarrier → TMSCarrier

    Join on CarrierCode = TMSCarrier.CarrierCode

    Many TMSDiscountTable records → exactly one TMSCarrier record

  • TMSCarrierService → TMSCarrierService

    Join on CarrierServiceCode = TMSCarrierService.CarrierServiceCode

    Many TMSDiscountTable records → zero or one TMSCarrierService record

  • TMSZoneMaster → TMSZoneMaster

    Join on ZoneMasterCode = TMSZoneMaster.ZoneMasterCode

    Many TMSDiscountTable records → exactly one TMSZoneMaster record

  • VendGroup → VendGroup

    Join on VendGroupId = VendGroup.VendGroup

    Many TMSDiscountTable records → zero or one VendGroup record

  • VendTable → VendTable

    Join on VendAccount = VendTable.AccountNum

    Many TMSDiscountTable records → zero or one VendTable record

  • VendTableInvoice → VendTable

    Join on VendInvoiceAccount = VendTable.AccountNum

    Many TMSDiscountTable records → zero or one VendTable record

Get this data out

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

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

Email sales@drdynamics.co.uk