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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesQuotationBasketIdUnique ID of the quotation basket. | String (20)SalesQuotationBasketId | Yes | None | |
BusRelAccountProspect account, linked to the prospects table. | String (20)smmBusRelAccount | No | smmBusRelTable.BusRelAccount | None |
ContactPersonIdContact person, linked to the contacts table. | String (20)ContactPersonId | No | ContactPerson.ContactPersonId | None |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CurrencyCodeCurrency code, linked to the currency table. | String (3)CustCurrencyCode | Yes | Currency.CurrencyCode | None |
CustAccountCustomer account, linked to the customers table. | String (20)CustAccount | No | CustTable.AccountNum | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DeliveryDateRequested ship date. | DateSalesShippingDateRequested | No | None | |
DeliveryLocationPoints to the delivery location record. | Int64LogisticsLocationRecId | No | LogisticsLocation.RecId | None |
DeliveryNameName of the delivery party. | String (160)CustName | No | None | |
EndDiscTotal discount group, related to the price groups table. | StringCustEndDiscCode | No | None | |
InclTaxYes/No flag showing whether prices include sales tax. | EnumInclTaxNoYes (enum) | No | None | |
InventLocationIdWarehouse, linked to the warehouses table. | StringInventLocationId | No | InventLocation.InventLocationId | None |
InventSiteIdInventory site, linked to the sites table. | StringInventSiteId | No | InventSite.SiteId | None |
LineDiscLine discount group, related to the price groups table. | StringCustLineDiscCode | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
MultiLineDiscMultiline discount group, related to the price groups table. | StringCustMultiLineDiscCode | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriceGroupIdPrice group, related to the price groups table. | StringCustPriceGroup | No | None | |
ProjIdRefProject ID, linked to the projects table. | String (20)ProjId | No | ProjTable.ProjId | None |
QuotationTypeKind of quotation: sales, project or rental. | EnumQuotationType (enum) | 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 | |
SessionIdSession ID number linked to the basket. | IntegerSessionId | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
CustContactIdxNot unique.
SessionIdxNot unique.
SalesQuotationBasketIdxPrimary indexReplacement keyUnique, alternate key.
Relations (12)
Each relation joins SalesQuotationBasket to another table on the fields shown.
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany SalesQuotationBasket records → zero or one ContactPerson record
Currency→CurrencyJoin on
CurrencyCode = Currency.CurrencyCodeMany SalesQuotationBasket records → exactly one Currency record
CustLineDiscountGroup→PriceDiscGroupJoin on
LineDisc = PriceDiscGroup.GroupId,PriceDiscGroup.Type = PriceGroupType::LineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::CustMany SalesQuotationBasket records → zero or one PriceDiscGroup record
CustMultiLineDiscountGroup→PriceDiscGroupJoin on
MultiLineDisc = PriceDiscGroup.GroupId,PriceDiscGroup.Type = PriceGroupType::MultiLineDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::CustMany SalesQuotationBasket records → zero or one PriceDiscGroup record
CustPriceGroup→PriceDiscGroupJoin on
PriceGroupId = PriceDiscGroup.GroupId,PriceDiscGroup.Type = PriceGroupType::PriceGroup,PriceDiscGroup.Module = ModuleInventCustVend::CustMany SalesQuotationBasket records → zero or one PriceDiscGroup record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany SalesQuotationBasket records → zero or one CustTable record
CustTotalDiscountGroup→PriceDiscGroupJoin on
EndDisc = PriceDiscGroup.GroupId,PriceDiscGroup.Type = PriceGroupType::EndDiscGroup,PriceDiscGroup.Module = ModuleInventCustVend::CustMany SalesQuotationBasket records → zero or one PriceDiscGroup record
DeliveryLocation_FK→LogisticsLocationJoin on
DeliveryLocation = LogisticsLocation.RecIdMany SalesQuotationBasket records → zero or one LogisticsLocation record
InventLocation→InventLocationJoin on
InventLocationId = InventLocation.InventLocationIdMany SalesQuotationBasket records → zero or one InventLocation record
InventSite→InventSiteJoin on
InventSiteId = InventSite.SiteIdMany SalesQuotationBasket records → zero or one InventSite record
ProjTable→ProjTableJoin on
ProjIdRef = ProjTable.ProjIdMany SalesQuotationBasket records → zero or one ProjTable record
smmBusRelTable→smmBusRelTableJoin on
BusRelAccount = smmBusRelTable.BusRelAccountMany 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.