Table
SuppItemTable
Supplementary items
Defines supplementary items that go with another item. A rule applies to an item, group or all items, and to an account, group or all accounts, for inventory, customers or vendors. It also holds quantities, a validity period and flags for free, optional and once-only items.
- Table name
SuppItemTable- Module
Sales and marketing- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
TradeAgreements- Primary index
SuppItemTableIdx- Replacement key
None- Key fields
Module, ItemCode, ItemRelation, AccountCode, AccountRelation, InventDimId, UnitId, RecId- Model
Foundation
Fields (23)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ModuleArea the rule is used in: inventory, customer or vendor. | EnumSuppItemModuleModuleInventCustVend (enum) | No | SuppItemGroup.Module | None |
ItemCodeShows whether the rule applies to one item, a group of items or all items. | EnumSuppItemItemCodeTableGroupAll (enum) | No | None | |
ItemRelationItem or item group that the rule applies to, depending on the item code. | String (20)SuppItemItemRelation | No | InventTable.ItemId | None |
AccountCodeShows whether the rule applies to one account, a group of accounts or all accounts. | EnumSuppItemAccountCodeTableGroupAll (enum) | No | None | |
AccountRelationCustomer or vendor account, or group, that the rule applies to, depending on the account code. | String (20)SuppItemAccountRelation | No | CustTable.AccountNumVendTable.AccountNum | None |
InventDimIdInventory dimension combination that the rule applies to. | String (20)InventDimId | No | InventDim.inventDimId | None |
UnitIdUnit of measure for the quantities. | StringUnitOfMeasureSymbol | No | UnitOfMeasure.Symbol | 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 | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
FromDateFirst date the rule is valid. | DateFromDate | No | None | |
MinimumQtySmallest quantity that applies to the rule. | RealSuppItemQtyMinimum | No | None | |
MultipleQtyQuantity step used for the rule. | RealSuppItemQtyMultiple | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | 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 | |
SuppItemFreeYes or no flag showing whether the supplementary item is free of charge. | EnumSuppItemFreeNoYes (enum) | No | None | |
SuppItemIdItem that is added as the supplementary item. | String (20)SuppItemId | Yes | InventTable.ItemId | None |
SuppItemInventDimIdInventory dimension combination that applies to the supplementary item. | String (20)InventDimId | No | InventDim.inventDimId | None |
SuppItemOnlyOnceYes or no flag showing whether the supplementary item is added only once. | EnumSuppItemOnlyOnceNoYes (enum) | No | None | |
SuppItemOptionalYes or no flag showing whether the supplementary item is optional. | EnumSuppItemOptionalNoYes (enum) | No | None | |
SuppItemQtyQuantity of the supplementary item. | RealSuppItemQty | No | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
ToDateLast date the rule is valid. | DateToDate | No | None |
Indexes (1)
SuppItemTableIdxPrimary indexModule,ItemCode,ItemRelation,AccountCode,AccountRelation,InventDimId,UnitId,RecIdUnique.
Relations (10)
Each relation joins SuppItemTable to another table on the fields shown.
CustSuppItemGroup→SuppItemGroupJoin on
Module = SuppItemGroup.Module,AccountCode = TableGroupAll::GroupId,AccountRelation = SuppItemGroup.GroupIdMany SuppItemTable records → zero or one SuppItemGroup record
CustTable→CustTableJoin on
Module = ModuleInventCustVend::Cust,AccountCode = TableGroupAll::Table,AccountRelation = CustTable.AccountNumMany SuppItemTable records → zero or one CustTable record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SuppItemTable records → zero or one InventDim record
InventSuppItemGroup→SuppItemGroupJoin on
SuppItemGroup.Module = ModuleInventCustVend::Invent,ItemCode = TableGroupAll::GroupId,ItemRelation = SuppItemGroup.GroupIdMany SuppItemTable records → zero or one SuppItemGroup record
InventTable→InventTableJoin on
ItemCode = TableGroupAll::Table,ItemRelation = InventTable.ItemIdMany SuppItemTable records → zero or one InventTable record
SupplementaryInventDim→InventDimJoin on
SuppItemInventDimId = InventDim.inventDimIdMany SuppItemTable records → zero or one InventDim record
SupplementaryInventTable→InventTableJoin on
SuppItemId = InventTable.ItemIdMany SuppItemTable records → exactly one InventTable record
UnitId→UnitOfMeasureJoin on
UnitId = UnitOfMeasure.SymbolMany SuppItemTable records → zero or one UnitOfMeasure record
VendSuppItemGroup→SuppItemGroupJoin on
Module = SuppItemGroup.Module,AccountCode = TableGroupAll::GroupId,AccountRelation = SuppItemGroup.GroupIdMany SuppItemTable records → zero or one SuppItemGroup record
VendTable→VendTableJoin on
Module = ModuleInventCustVend::Vend,AccountCode = TableGroupAll::Table,AccountRelation = VendTable.AccountNumMany SuppItemTable records → zero or one VendTable record
Get this data out
No public entity reads from SuppItemTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with SuppItemTable in a report, an integration or a migration? Talk to Dr Dynamics.