Table

TMSApportionedValue

Apportioned Value

Holds how a charge is shared across levels of a document, such as sales orders, purchase orders and loads. Each row ties a source record, such as a charge transaction, to a top-level record and an apportioned-level record. It holds the share value and quantity. The key combines table and record IDs.

Table name
TMSApportionedValue
Module
Transportation management
Table group
Group
Table type
Regular
Data per company
Yes
Configuration key
WHSandTMS
Primary index
IndexIdx
Replacement key
IndexIdx
Key fields
TopLevelTableId, TopLevelRecId, ApportionedLevelTableId, ApportionedLevelRecId, SourceRecId, SourceTableId
Model
Foundation

Fields (16)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
TopLevelTableIdTable ID of the top-level record.Integer
TMSTopLevelTableId
NoNone
TopLevelRecIdRecord ID of the top-level record, such as a purchase order.Int64
TMSTopLevelRecId
NoNone
ApportionedLevelTableIdTable ID of the record the value is apportioned to.Integer
TMSApportionedLevelTableId
NoNone
ApportionedLevelRecIdRecord ID of the record the value is apportioned to.Int64
TMSApportionedLevelRecId
NoNone
SourceRecIdRecord ID of the source record, such as a charge transaction.Int64
TMSSourceRecId
NoNone
SourceTableIdTable ID of the source record.Integer
TMSSourceTableId
NoNone
ApportionValueValue allocated to the apportioned record.Real
TMSApportionValue
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
MidLevelRecIdRecord ID of the middle-level record.Int64
TMSMidLevelRecId
NoNone
MidLevelTableIdTable ID of the middle-level record.Integer
TMSMidLevelTableId
NoNone
MiscChargesType of the top-level document for the charge: sales order, load or purchase order.Enum
TMSMiscCharges (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
QtyQuantity linked to the apportioned value.Real
ProductQuantity
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 (3)

Relations (7)

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

  • MarkupTrans → MarkupTrans

    Join on SourceTableId = MarkupTrans.TableId, SourceRecId = MarkupTrans.RecId

    Many TMSApportionedValue records → zero or one MarkupTrans record

  • PurchLine → PurchLine

    Join on ApportionedLevelTableId = PurchLine.TableId, ApportionedLevelRecId = PurchLine.RecId, MidLevelTableId = PurchLine.TableId, MidLevelRecId = PurchLine.RecId

    Many TMSApportionedValue records → zero or one PurchLine record

  • PurchTable → PurchTable

    Join on TopLevelTableId = PurchTable.TableId, TopLevelRecId = PurchTable.RecId

    Many TMSApportionedValue records → zero or one PurchTable record

  • SalesLine → SalesLine

    Join on ApportionedLevelRecId = SalesLine.RecId, ApportionedLevelTableId = SalesLine.TableId, MidLevelTableId = SalesLine.TableId, MidLevelRecId = SalesLine.RecId

    Many TMSApportionedValue records → zero or one SalesLine record

  • SalesTable → SalesTable

    Join on TopLevelTableId = SalesTable.TableId, TopLevelRecId = SalesTable.RecId

    Many TMSApportionedValue records → zero or one SalesTable record

  • WHSLoadLine → WHSLoadLine

    Join on ApportionedLevelRecId = WHSLoadLine.RecId, ApportionedLevelTableId = WHSLoadLine.TableId

    Many TMSApportionedValue records → zero or one WHSLoadLine record

  • WHSLoadTable → WHSLoadTable

    Join on TopLevelRecId = WHSLoadTable.RecId, TopLevelTableId = WHSLoadTable.TableId

    Many TMSApportionedValue records → zero or one WHSLoadTable record

Get this data out

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

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

Email sales@drdynamics.co.uk