Table
SalesBasketLine
Sales basket lines
Holds the lines of a sales basket. Each line has an item, quantity, unit, price, discounts and tax groups. It links to the sales basket header through the sales basket ID.
- Table name
SalesBasketLine- Module
Sales and marketing- Table group
WorksheetLine- Table type
Regular- Data per company
Yes- Configuration key
LogisticsBasic- Primary index
SalesBasketLineIdx- Replacement key
None- Key fields
SalesBasketId, RecId- Model
Foundation
Fields (28)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesBasketIdSales basket that the line belongs to. | String (20)SalesBasketId | Yes | SalesBasket.SalesBasketId | 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 | |
basketTransIdLot ID that links the line to inventory transactions. | String (20)TradeInventTransId | No | InventTransOrigin.InventTransId | None |
ConfirmedDlvRequested ship date for the line. | DateSalesShippingDateRequested | No | None | |
CurrencyCodeCurrency of the line. Points to the currency table. | String (3)CustCurrencyCode | No | Currency.CurrencyCode | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventDimIdNumber of the inventory dimension combination for the line. Points to the inventory dimensions table. | String (20)InventDimId | No | InventDim.inventDimId | None |
ItemBOMIdBill of materials used as a sub-BOM for the item. | String (20)ItemBOMId | No | BOMTable.BOMId | None |
ItemIdItem on the line. Points to the items table. | String (20)ItemId | Yes | InventTable.ItemId | None |
ItemRouteIdRoute used as a subroute for the item. | String (20)ItemRouteId | No | RouteTable.RouteId | None |
LineAmountNet amount of the line. | RealSalesLineAmount | No | None | |
LineDiscDiscount amount on the line. | RealSalesLineDisc | No | None | |
LinePercentDiscount percentage on the line. | RealSalesLinePercent | No | None | |
ManualEntryChangepolicySystem record ID of a price discount change policy for manual entry. The label is only 'Dummy'.low confidence | Int64PriceDiscPolicyManual | No | PriceDiscChangePolicy.RecId | None |
MultiLnDiscMultiline discount amount. | RealSalesMultiLnDisc | No | None | |
MultiLnPercentMultiline discount percentage. | RealSalesMultiLnPercent | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceUnitNumber of units that the unit price refers to. | RealPriceUnit | 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 | |
SalesMarkupSales charges on the line. | RealSalesMarkup | No | None | |
SalesPriceUnit price of the item. | RealSalesPrice | No | None | |
SalesQtyQuantity ordered. | RealSalesOrderedQty | No | None | |
SalesUnitUnit of measure for the sales quantity. Points to the units table. | StringSalesUnit | No | UnitOfMeasure.Symbol | None |
SystemEntryChangePolicySystem record ID of a price discount change policy for system entry. The label is only 'Dummy'.low confidence | Int64PriceDiscPolicySystem | No | PriceDiscChangePolicy.RecId | None |
SystemEntrySourceSource of the system-entered price or discount values. The label is only 'Dummy'.low confidence | EnumPriceDiscSystemSource (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TaxGroupSales tax group of the line. Points to the sales tax group table. | StringTaxGroup | No | TaxGroupHeading.TaxGroup | None |
TaxItemGroupItem sales tax group of the line. Points to the item sales tax group table. | StringTaxItemGroup | No | TaxItemGroupHeading.TaxItemGroup | None |
Indexes (1)
SalesBasketLineIdxPrimary indexUnique.
Relations (12)
Each relation joins SalesBasketLine to another table on the fields shown.
BOMTable→BOMTableJoin on
ItemBOMId = BOMTable.BOMIdMany SalesBasketLine records → zero or one BOMTable record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany SalesBasketLine records → zero or one Currency record
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SalesBasketLine records → zero or one InventDim record
InventTable→InventTableJoin on
ItemId = InventTable.ItemIdMany SalesBasketLine records → exactly one InventTable record
InventTransOrigin→InventTransOriginJoin on
basketTransId = InventTransOrigin.InventTransIdMany SalesBasketLine records → zero or one InventTransOrigin record
PriceDiscChangePolicyRecId1→PriceDiscChangePolicyJoin on
SystemEntryChangePolicy = PriceDiscChangePolicy.RecIdMany SalesBasketLine records → zero or one PriceDiscChangePolicy record
PriceDiscChangePolicyRecId2→PriceDiscChangePolicyJoin on
ManualEntryChangepolicy = PriceDiscChangePolicy.RecIdMany SalesBasketLine records → zero or one PriceDiscChangePolicy record
RouteTable→RouteTableJoin on
ItemRouteId = RouteTable.RouteIdMany SalesBasketLine records → zero or one RouteTable record
SalesBasket→SalesBasketJoin on
SalesBasketId = SalesBasket.SalesBasketIdMany SalesBasketLine records → exactly one SalesBasket record
SalesUnit→UnitOfMeasureJoin on
SalesUnit = UnitOfMeasure.SymbolMany SalesBasketLine records → zero or one UnitOfMeasure record
TaxGroupHeading→TaxGroupHeadingJoin on
TaxGroup = TaxGroupHeading.TaxGroupMany SalesBasketLine records → zero or one TaxGroupHeading record
TaxItemGroupHeading→TaxItemGroupHeadingJoin on
TaxItemGroup = TaxItemGroupHeading.TaxItemGroupMany SalesBasketLine records → zero or one TaxItemGroupHeading record
Get this data out
No public entity reads from SalesBasketLine. Its data is only reachable through the application, a custom entity or a database export.
Need help with SalesBasketLine in a report, an integration or a migration? Talk to Dr Dynamics.