tableSales & Receivablesofficial - Microsoftderived - from the source, no model text

Table 7002 "Sales Price"

Base Application · Microsoft.Sales.Pricing

Across versions

  1. BC23present
  2. BC24declaration changed
  3. BC25unchanged
  4. BC261 fields changed
  5. BC27unchanged
  6. BC2813 fields changed, 3 events added
  7. BC29-30unchanged

Neighbourhood 11 connected objects and pages

Table 18 "Customer" (relates to)CustomerTable 27 "Item" (relates to)ItemTable 323 "VAT Business Posting Group" (relates to)VAT Business Posting GroupTable 4 "Currency" (relates to)CurrencyTable 5071 "Campaign" (relates to)CampaignTable 5331 "CRM Integration Record" (relates to)CRM Integration RecordTable 5401 "Item Variant" (relates to)Item VariantTable 5404 "Item Unit of Measure" (relates to)Item Unit of MeasureTable 6 "Customer Price Group" (relates to)Customer Price GroupPage 7002 "Sales Prices" (pages and codeunits on it)Sales PricesPage 7007 "Get Sales Price" (pages and codeunits on it)Get Sales Price

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

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

Pages and codeunits on this table

Countries that replace it

AU, NZ

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.

Evidence 1 sources