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 descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesBasketIdSales basket that the line belongs to.String (20)
SalesBasketId
YesSalesBasket.SalesBasketIdNone
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
basketTransIdLot ID that links the line to inventory transactions.String (20)
TradeInventTransId
NoInventTransOrigin.InventTransIdNone
ConfirmedDlvRequested ship date for the line.Date
SalesShippingDateRequested
NoNone
CurrencyCodeCurrency of the line. Points to the currency table.String (3)
CustCurrencyCode
NoCurrency.CurrencyCodeNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
InventDimIdNumber of the inventory dimension combination for the line. Points to the inventory dimensions table.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemBOMIdBill of materials used as a sub-BOM for the item.String (20)
ItemBOMId
NoBOMTable.BOMIdNone
ItemIdItem on the line. Points to the items table.String (20)
ItemId
YesInventTable.ItemIdNone
ItemRouteIdRoute used as a subroute for the item.String (20)
ItemRouteId
NoRouteTable.RouteIdNone
LineAmountNet amount of the line.Real
SalesLineAmount
NoNone
LineDiscDiscount amount on the line.Real
SalesLineDisc
NoNone
LinePercentDiscount percentage on the line.Real
SalesLinePercent
NoNone
ManualEntryChangepolicySystem record ID of a price discount change policy for manual entry. The label is only 'Dummy'.low confidenceInt64
PriceDiscPolicyManual
NoPriceDiscChangePolicy.RecIdNone
MultiLnDiscMultiline discount amount.Real
SalesMultiLnDisc
NoNone
MultiLnPercentMultiline discount percentage.Real
SalesMultiLnPercent
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceUnitNumber of units that the unit price refers to.Real
PriceUnit
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
SalesMarkupSales charges on the line.Real
SalesMarkup
NoNone
SalesPriceUnit price of the item.Real
SalesPrice
NoNone
SalesQtyQuantity ordered.Real
SalesOrderedQty
NoNone
SalesUnitUnit of measure for the sales quantity. Points to the units table.String
SalesUnit
NoUnitOfMeasure.SymbolNone
SystemEntryChangePolicySystem record ID of a price discount change policy for system entry. The label is only 'Dummy'.low confidenceInt64
PriceDiscPolicySystem
NoPriceDiscChangePolicy.RecIdNone
SystemEntrySourceSource of the system-entered price or discount values. The label is only 'Dummy'.low confidenceEnum
PriceDiscSystemSource (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TaxGroupSales tax group of the line. Points to the sales tax group table.String
TaxGroup
NoTaxGroupHeading.TaxGroupNone
TaxItemGroupItem sales tax group of the line. Points to the item sales tax group table.String
TaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupNone

Indexes (1)

Relations (12)

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

  • BOMTable → BOMTable

    Join on ItemBOMId = BOMTable.BOMId

    Many SalesBasketLine records → zero or one BOMTable record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many SalesBasketLine records → zero or one Currency record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many SalesBasketLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many SalesBasketLine records → exactly one InventTable record

  • InventTransOrigin → InventTransOrigin

    Join on basketTransId = InventTransOrigin.InventTransId

    Many SalesBasketLine records → zero or one InventTransOrigin record

  • PriceDiscChangePolicyRecId1 → PriceDiscChangePolicy

    Join on SystemEntryChangePolicy = PriceDiscChangePolicy.RecId

    Many SalesBasketLine records → zero or one PriceDiscChangePolicy record

  • PriceDiscChangePolicyRecId2 → PriceDiscChangePolicy

    Join on ManualEntryChangepolicy = PriceDiscChangePolicy.RecId

    Many SalesBasketLine records → zero or one PriceDiscChangePolicy record

  • RouteTable → RouteTable

    Join on ItemRouteId = RouteTable.RouteId

    Many SalesBasketLine records → zero or one RouteTable record

  • SalesBasket → SalesBasket

    Join on SalesBasketId = SalesBasket.SalesBasketId

    Many SalesBasketLine records → exactly one SalesBasket record

  • SalesUnit → UnitOfMeasure

    Join on SalesUnit = UnitOfMeasure.Symbol

    Many SalesBasketLine records → zero or one UnitOfMeasure record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many SalesBasketLine records → zero or one TaxGroupHeading record

  • TaxItemGroupHeading → TaxItemGroupHeading

    Join on TaxItemGroup = TaxItemGroupHeading.TaxItemGroup

    Many 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.

Email sales@drdynamics.co.uk