Table

SalesQuotationBasket

Sales quotation basket

Holds a header for a basket of sales quotation lines, keyed by the basket ID. It records who the quotation is for (customer or prospect), delivery, price and discount groups, currency and any project. It also stores the quotation type: sales, project or rental.

Table name
SalesQuotationBasket
Module
Sales and marketing
Table group
WorksheetHeader
Table type
Regular
Data per company
Yes
Configuration key
QuotationBasic
Primary index
SalesQuotationBasketIdx
Replacement key
SalesQuotationBasketIdx
Key fields
SalesQuotationBasketId
Model
Foundation

Fields (25)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesQuotationBasketIdUnique ID of the quotation basket.String (20)
SalesQuotationBasketId
YesNone
BusRelAccountProspect account, linked to the prospects table.String (20)
smmBusRelAccount
NosmmBusRelTable.BusRelAccountNone
ContactPersonIdContact person, linked to the contacts table.String (20)
ContactPersonId
NoContactPerson.ContactPersonIdNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CurrencyCodeCurrency code, linked to the currency table.String (3)
CustCurrencyCode
YesCurrency.CurrencyCodeNone
CustAccountCustomer account, linked to the customers table.String (20)
CustAccount
NoCustTable.AccountNumNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DeliveryDateRequested ship date.Date
SalesShippingDateRequested
NoNone
DeliveryLocationPoints to the delivery location record.Int64
LogisticsLocationRecId
NoLogisticsLocation.RecIdNone
DeliveryNameName of the delivery party.String (160)
CustName
NoNone
EndDiscTotal discount group, related to the price groups table.String
CustEndDiscCode
NoNone
InclTaxYes/No flag showing whether prices include sales tax.Enum
InclTax
NoYes (enum)
NoNone
InventLocationIdWarehouse, linked to the warehouses table.String
InventLocationId
NoInventLocation.InventLocationIdNone
InventSiteIdInventory site, linked to the sites table.String
InventSiteId
NoInventSite.SiteIdNone
LineDiscLine discount group, related to the price groups table.String
CustLineDiscCode
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MultiLineDiscMultiline discount group, related to the price groups table.String
CustMultiLineDiscCode
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriceGroupIdPrice group, related to the price groups table.String
CustPriceGroup
NoNone
ProjIdRefProject ID, linked to the projects table.String (20)
ProjId
NoProjTable.ProjIdNone
QuotationTypeKind of quotation: sales, project or rental.Enum
QuotationType (enum)
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
SessionIdSession ID number linked to the basket.Integer
SessionId
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (3)

Relations (12)

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

  • ContactPerson → ContactPerson

    Join on ContactPersonId = ContactPerson.ContactPersonId

    Many SalesQuotationBasket records → zero or one ContactPerson record

  • Currency → Currency

    Join on CurrencyCode = Currency.CurrencyCode

    Many SalesQuotationBasket records → exactly one Currency record

  • CustLineDiscountGroup → PriceDiscGroup

    Join on LineDisc = PriceDiscGroup.GroupId, PriceDiscGroup.Type = PriceGroupType::LineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust

    Many SalesQuotationBasket records → zero or one PriceDiscGroup record

  • CustMultiLineDiscountGroup → PriceDiscGroup

    Join on MultiLineDisc = PriceDiscGroup.GroupId, PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust

    Many SalesQuotationBasket records → zero or one PriceDiscGroup record

  • CustPriceGroup → PriceDiscGroup

    Join on PriceGroupId = PriceDiscGroup.GroupId, PriceDiscGroup.Type = PriceGroupType::PriceGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust

    Many SalesQuotationBasket records → zero or one PriceDiscGroup record

  • CustTable → CustTable

    Join on CustAccount = CustTable.AccountNum

    Many SalesQuotationBasket records → zero or one CustTable record

  • CustTotalDiscountGroup → PriceDiscGroup

    Join on EndDisc = PriceDiscGroup.GroupId, PriceDiscGroup.Type = PriceGroupType::EndDiscGroup, PriceDiscGroup.Module = ModuleInventCustVend::Cust

    Many SalesQuotationBasket records → zero or one PriceDiscGroup record

  • DeliveryLocation_FK → LogisticsLocation

    Join on DeliveryLocation = LogisticsLocation.RecId

    Many SalesQuotationBasket records → zero or one LogisticsLocation record

  • InventLocation → InventLocation

    Join on InventLocationId = InventLocation.InventLocationId

    Many SalesQuotationBasket records → zero or one InventLocation record

  • InventSite → InventSite

    Join on InventSiteId = InventSite.SiteId

    Many SalesQuotationBasket records → zero or one InventSite record

  • ProjTable → ProjTable

    Join on ProjIdRef = ProjTable.ProjId

    Many SalesQuotationBasket records → zero or one ProjTable record

  • smmBusRelTable → smmBusRelTable

    Join on BusRelAccount = smmBusRelTable.BusRelAccount

    Many SalesQuotationBasket records → zero or one smmBusRelTable record

Get this data out

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

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

Email sales@drdynamics.co.uk