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

Table 7004 "Sales Line Discount"

Base Application · Microsoft.Sales.Pricing

Across versions

  1. BC23present
  2. BC24declaration changed
  3. BC25unchanged
  4. BC26declaration changed
  5. BC27unchanged
  6. BC2811 fields changed
  7. BC291 fields changed
  8. BC30unchanged

Neighbourhood 10 connected objects and pages

Table 18 "Customer" (relates to)CustomerTable 27 "Item" (relates to)ItemTable 340 "Customer Discount Group" (relates to)Customer Discount GroupTable 341 "Item Discount Group" (relates to)Item Discount GroupTable 4 "Currency" (relates to)CurrencyTable 5071 "Campaign" (relates to)CampaignTable 5401 "Item Variant" (relates to)Item VariantTable 5404 "Item Unit of Measure" (relates to)Item Unit of MeasurePage 7004 "Sales Line Discounts" (pages and codeunits on it)Sales Line DiscountsPage 7009 "Get Sales Line Disc." (pages and codeunits on it)Get Sales Line Disc.

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 Line Discount
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 Code Δ BC28 Code[20] Specifies one of two values, depending on the value in the Type field. TableRelation Table 27 “Item”, Table 341 “Item Discount Group” (if (Type = const(Item)) Item else if (Type = const(“Item Disc. Group”)) “Item Discount Group”); NotBlank
2 Sales Code Δ BC28 Code[20] Specifies one of the following values, depending on the value in the Sales Type field. TableRelation Table 18 “Customer”, Table 340 “Customer Discount Group”, Table 5071 “Campaign” (if (“Sales Type” = const(“Customer Disc. Group”)) “Customer Discount Group” else if (“Sales Type” = const(Customer)) Customer else if (“Sales Type” = const(Campaign)) Campaign)
3 Currency Code Δ BC28 Code[10] Specifies the currency code of the sales line discount price. TableRelation Table 4 “Currency”
4 Starting Date Δ BC28 Date Specifies the date from which the sales line discount is valid.
5 Line Discount % Δ BC28 Δ BC29 Decimal Specifies the discount percentage to use to calculate the sales line discount.
13 Sales Type Δ BC28 Option Specifies the sales type of the sales line discount. The sales type defines whether the sales price is for an individual customer, customer discount group, all customers, or for a campaign. OptionCaption: Customer,Customer Disc. Group,All Customers,Campaign
14 Minimum Quantity Δ BC28 Decimal Specifies the minimum quantity that the customer must purchase in order to gain the agreed discount.
15 Ending Date Δ BC28 Date Specifies the date to which the sales line discount is valid.
21 Type Δ BC28 Enum “Sales Line Discount Type” Specifies the type of item that the sales discount line is valid for. That is, either an item or an item discount group. enum Enum 7021 “Sales Line Discount Type”
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” (if (Type = const(Item)) “Item Unit of Measure”.Code where(“Item No.” = field(Code)))
5700 Variant Code Δ BC28 Code[10] Specifies the variant of the item on the line. TableRelation Table 5401 “Item Variant” (if (Type = const(Item)) “Item Variant”.Code where(“Item No.” = field(Code)))

Keys

  • Key1: Type, Code, Sales Type, Sales Code, Starting Date, Currency Code, Variant Code, Unit of Measure Code, Minimum Quantity (clustered)
  • Key2: Sales Type, Sales Code, Type, Code, Starting Date, Currency Code, Variant Code, Unit of Measure Code, Minimum Quantity

Triggers

OnInsert, OnRename

Relations

Pages and codeunits on this table

Recent changes

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 Line Discount"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources