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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CarrierCodeCode of the shipping carrier the discount applies to. | String (20)TMSCarrierCode | No | TMSCarrier.CarrierCode | None |
CarrierServiceCodeCode of the carrier service the discount applies to. | String (20)TMSCarrierServiceCode | No | None | |
ClassHighUpper limit of the LTL freight class range. | RealWHSClass | No | None | |
ClassLowLower limit of the LTL freight class range. | RealWHSClass | No | None | |
CountryRegionISOCodeTwo-letter ISO code of the country or region. | String (2)TMSCountryRegionISOCode | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency for the discount amounts. | String (3)CurrencyCode | Yes | Currency.CurrencyCode | None |
CustAccountCustomer account the discount is set for. | String (20)CustAccount | No | CustTable.AccountNum | None |
CustGroupIdCustomer group the discount is set for. | StringCustGroupId | No | CustGroup.CustGroup | None |
CustInvoiceAccountInvoice account of the customer. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DestCountryRegionDestination country or region. | StringTMSCountryRegion | No | LogisticsAddressCountryRegion.CountryRegionId | None |
DestPostalCodeHighEnd of the destination ZIP or postal code range. | StringTMSPostalCode | No | None | |
DestPostalCodeLowStart of the destination ZIP or postal code range. | StringTMSPostalCode | No | None | |
DestStateDestination state. | StringTMSState | No | None | |
DirectionShipping direction: none, inbound or outbound. | EnumTMSDirection (enum) | No | None | |
DiscountResultTypeTells if the discount result is a percentage or an amount. | EnumTMSDiscountResultType (enum) | No | None | |
DiscountTypeDiscount type: customer, shipper or none. | EnumTMSDiscountType (enum) | Yes | None | |
EffectiveUTCDateTimeFromDate and time, in UTC, when the discount starts to apply. | UtcDateTimeTMSEffectiveUTCDateTimeFrom | Yes | None | |
EffectiveUTCDateTimeToDate and time, in UTC, when the discount stops applying. | UtcDateTimeTMSEffectiveUTCDateTimeTo | Yes | None | |
FeeRate value for the discount. | RealTMSFee | No | None | |
FreightTermCodeDelivery terms the discount is limited to. | StringTMSFreightTermCode | No | DlvTerm.Code | None |
InventLocationIdWarehouse the discount is limited to. | StringInventLocationId | No | InventLocation.InventLocationId | None |
InventSiteIdSite the discount is limited to. | StringInventSiteId | No | InventSite.SiteId | None |
MinimumChargeMinimum charge value for the discount. | RealTMSMinimumCharge | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PercentPercentage value for the discount. | RealTMSPercent | 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 | |
VendAccountVendor account the discount is set for. | String (20)VendAccount | No | VendTable.AccountNum | None |
VendGroupIdVendor group the discount is set for. | StringVendGroupId | No | VendGroup.VendGroup | None |
VendInvoiceAccountInvoice account of the vendor. | String (20)VendInvoiceAccount | No | VendTable.AccountNum | None |
WeightHighMaximum weight for which the discount applies. | RealTMSWeightHigh | No | None | |
WeightLowMinimum weight for which the discount applies. | RealTMSWeightLow | No | None | |
ZoneName of the zone the discount is limited to. | String (50)TMSZone | No | None | |
ZoneMasterCodeCode of the zone master the zone belongs to. | String (20)TMSZoneMasterCode | No | TMSZoneMaster.ZoneMasterCode | None |
Indexes (1)
CurrencyIdxNot unique.
Relations (14)
Each relation joins TMSDiscountTable to another table on the fields shown.
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany TMSDiscountTable records → exactly one Currency record
CustGroup→CustGroupJoin on
CustGroupId = CustGroup.CustGroupMany TMSDiscountTable records → zero or one CustGroup record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany TMSDiscountTable records → zero or one CustTable record
CustTableInvoice→CustTableJoin on
CustInvoiceAccount = CustTable.AccountNumMany TMSDiscountTable records → zero or one CustTable record
DlvTerm→DlvTermJoin on
FreightTermCode = DlvTerm.CodeMany TMSDiscountTable records → zero or one DlvTerm record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany TMSDiscountTable records → zero or one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany TMSDiscountTable records → zero or one InventSite record
LogisticsAddressCountryRegion→LogisticsAddressCountryRegionJoin on
DestCountryRegion = LogisticsAddressCountryRegion.CountryRegionIdMany TMSDiscountTable records → zero or one LogisticsAddressCountryRegion record
TMSCarrier→TMSCarrierJoin on
CarrierCode = TMSCarrier.CarrierCodeMany TMSDiscountTable records → exactly one TMSCarrier record
TMSCarrierService→TMSCarrierServiceJoin on
CarrierServiceCode = TMSCarrierService.CarrierServiceCodeMany TMSDiscountTable records → zero or one TMSCarrierService record
TMSZoneMaster→TMSZoneMasterJoin on
ZoneMasterCode = TMSZoneMaster.ZoneMasterCodeMany TMSDiscountTable records → exactly one TMSZoneMaster record
VendGroup→VendGroupJoin on
VendGroupId = VendGroup.VendGroupMany TMSDiscountTable records → zero or one VendGroup record
VendTable→VendTableJoin on
VendAccount = VendTable.AccountNumMany TMSDiscountTable records → zero or one VendTable record
VendTableInvoice→VendTableJoin on
VendInvoiceAccount = VendTable.AccountNumMany 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.