Table 7002 "Sales Price"
Base Application · Microsoft.Sales.Pricing
Across versions
- BC23present
- BC24declaration changed
- BC25unchanged
- BC261 fields changed
- BC27unchanged
- BC2813 fields changed, 3 events added
- BC29-30unchanged
Neighbourhood 11 connected objects and pages
Base Application · Microsoft.Sales.Pricing · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Sales Price |
| DataClassification | CustomerContent |
Fields
Explanation: the field’s ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.
| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Item No. Δ BC28 | Code[20] | Specifies the number of the item for which the sales price is valid. | TableRelation Table 27 “Item”; NotBlank |
| 2 | Sales Code Δ BC28 | Code[20] | Specifies the code that belongs to the Sales Type. | TableRelation Table 18 “Customer”, Table 5071 “Campaign”, Table 6 “Customer Price Group” (if (“Sales Type” = const(“Customer Price Group”)) “Customer Price Group” else if (“Sales Type” = const(Customer)) Customer else if (“Sales Type” = const(Campaign)) Campaign) |
| 3 | Currency Code Δ BC28 | Code[10] | Specifies the code for the currency of the sales price. | TableRelation Table 4 “Currency” |
| 4 | Starting Date Δ BC28 | Date | Specifies the date from which the sales price is valid. | |
| 5 | Unit Price Δ BC28 | Decimal | Specifies the price of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card. | |
| 7 | Price Includes VAT Δ BC28 | Boolean | Specifies if the sales price includes VAT. | |
| 10 | Allow Invoice Disc. Δ BC28 | Boolean | Specifies if an invoice discount will be calculated when the sales price is offered. | |
| 11 | VAT Bus. Posting Gr. (Price) | Code[20] | Specifies the VAT business posting group for customers for whom you want the sales price (which includes VAT) to apply. via Page 7002 “Sales Prices” | TableRelation Table 323 “VAT Business Posting Group” (VAT Business Posting Group) |
| 13 | Sales Type Δ BC28 | Enum “Sales Price Type” | Specifies the sales price type, which defines whether the price is for an individual, group, all customers, or a campaign. | enum Enum 7023 “Sales Price Type” |
| 14 | Minimum Quantity Δ BC28 | Decimal | Specifies the minimum sales quantity required to warrant the sales price. | |
| 15 | Ending Date Δ BC28 | Date | Specifies the calendar date when the sales price agreement ends. | |
| 720 | Coupled to CRM Δ BC26 | Boolean | Coupled to Dynamics 365 Sales caption | obsolete Removed 26.0; #if not CLEANSCHEMA26; not editable |
| 721 | Coupled to Dataverse | Boolean | Coupled to Dynamics 365 Sales caption | FlowField: exist(“CRM Integration Record” where(“Integration ID” = field(SystemId), “Table ID” = const(7002))); not editable |
| 5400 | Unit of Measure Code Δ BC28 | Code[10] | Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted. | TableRelation Table 5404 “Item Unit of Measure” (“Item Unit of Measure”.Code where(“Item No.” = field(“Item No.”))) |
| 5700 | Variant Code Δ BC28 | Code[10] | Specifies the variant of the item on the line. | TableRelation Table 5401 “Item Variant” (“Item Variant”.Code where(“Item No.” = field(“Item No.”))) |
| 7001 | Allow Line Disc. Δ BC28 | Boolean | Specifies if a line discount will be calculated when the sales price is offered. |
Keys
- Key1: Item No., Sales Type, Sales Code, Starting Date, Currency Code, Variant Code, Unit of Measure Code, Minimum Quantity (clustered)
- Key2: Sales Type, Sales Code, Item No., Starting Date, Currency Code, Variant Code, Unit of Measure Code, Minimum Quantity
- Key3: SystemModifiedAt
Events published
OnBeforeItemNoOnValidate(var SalesPrice: Record "Sales Price"; var xSalesPrice: Record "Sales Price"; var IsHandled: Boolean)+ BC28 (integration)OnBeforeNewSalesPriceInsert(var NewSalesPrice: Record "Sales Price"; SalesPrice: Record "Sales Price")+ BC28 (integration)OnValidateSalesCodeOnAfterGetCustomerPriceGroup(var Salesprice: Record "Sales Price"; CustPriceGroup: Record "Customer Price Group")+ BC28 (integration)
Procedures
CopySalesPriceToCustomersSalesPrice(var SalesPrice: Record "Sales Price"; CustNo: Code[20])+ BC28: Copies sales prices to a specific customer by creating customer-specific price records.
Plus 1 local procedures.
Triggers
OnInsert, OnRename
Relations
- Sales Code: TableRelation Table 18 “Customer” (conditional)
- Item No.: TableRelation Table 27 “Item”
- VAT Bus. Posting Gr. (Price): TableRelation Table 323 “VAT Business Posting Group”
- Currency Code: TableRelation Table 4 “Currency”
- Sales Code: TableRelation Table 5071 “Campaign” (conditional)
- Coupled to Dataverse: CalcFormula Table 5331 “CRM Integration Record”
- Variant Code: TableRelation Table 5401 “Item Variant”
- Unit of Measure Code: TableRelation Table 5404 “Item Unit of Measure”
- Sales Code: TableRelation Table 6 “Customer Price Group” (conditional)
Pages and codeunits on this table
- Page 7002 “Sales Prices” (source table)
- Page 7007 “Get Sales Price” (source table)
Countries that replace it
Deprecations
- field Coupled to CRM: Removed 26.0 (#if not CLEANSCHEMA26), “Replaced by flow field Coupled to Dataverse”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "table", object_name: "Sales Price"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.