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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
TopLevelTableIdTable ID of the top-level record. | IntegerTMSTopLevelTableId | No | None | |
TopLevelRecIdRecord ID of the top-level record, such as a purchase order. | Int64TMSTopLevelRecId | No | None | |
ApportionedLevelTableIdTable ID of the record the value is apportioned to. | IntegerTMSApportionedLevelTableId | No | None | |
ApportionedLevelRecIdRecord ID of the record the value is apportioned to. | Int64TMSApportionedLevelRecId | No | None | |
SourceRecIdRecord ID of the source record, such as a charge transaction. | Int64TMSSourceRecId | No | None | |
SourceTableIdTable ID of the source record. | IntegerTMSSourceTableId | No | None | |
ApportionValueValue allocated to the apportioned record. | RealTMSApportionValue | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
MidLevelRecIdRecord ID of the middle-level record. | Int64TMSMidLevelRecId | No | None | |
MidLevelTableIdTable ID of the middle-level record. | IntegerTMSMidLevelTableId | No | None | |
MiscChargesType of the top-level document for the charge: sales order, load or purchase order. | EnumTMSMiscCharges (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
QtyQuantity linked to the apportioned value. | RealProductQuantity | 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 |
Indexes (3)
IndexIdxPrimary indexReplacement keyTopLevelTableId,TopLevelRecId,ApportionedLevelTableId,ApportionedLevelRecId,SourceRecId,SourceTableIdUnique, alternate key.
SourceRecIdSourceTableIdIdxNot unique.
SourceDocumentLineIdxApportionedLevelRecId,ApportionedLevelTableId,MidLevelRecId,MidLevelTableIdNot unique.
Relations (7)
Each relation joins TMSApportionedValue to another table on the fields shown.
MarkupTrans→MarkupTransJoin on
SourceTableId = MarkupTrans.TableId,SourceRecId = MarkupTrans.RecIdMany TMSApportionedValue records → zero or one MarkupTrans record
PurchLine→PurchLineJoin on
ApportionedLevelTableId = PurchLine.TableId,ApportionedLevelRecId = PurchLine.RecId,MidLevelTableId = PurchLine.TableId,MidLevelRecId = PurchLine.RecIdMany TMSApportionedValue records → zero or one PurchLine record
PurchTable→PurchTableJoin on
TopLevelTableId = PurchTable.TableId,TopLevelRecId = PurchTable.RecIdMany TMSApportionedValue records → zero or one PurchTable record
SalesLine→SalesLineJoin on
ApportionedLevelRecId = SalesLine.RecId,ApportionedLevelTableId = SalesLine.TableId,MidLevelTableId = SalesLine.TableId,MidLevelRecId = SalesLine.RecIdMany TMSApportionedValue records → zero or one SalesLine record
SalesTable→SalesTableJoin on
TopLevelTableId = SalesTable.TableId,TopLevelRecId = SalesTable.RecIdMany TMSApportionedValue records → zero or one SalesTable record
WHSLoadLine→WHSLoadLineJoin on
ApportionedLevelRecId = WHSLoadLine.RecId,ApportionedLevelTableId = WHSLoadLine.TableIdMany TMSApportionedValue records → zero or one WHSLoadLine record
WHSLoadTable→WHSLoadTableJoin on
TopLevelRecId = WHSLoadTable.RecId,TopLevelTableId = WHSLoadTable.TableIdMany 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.