Table 7004 "Sales Line Discount"
Base Application · Microsoft.Sales.Pricing
Across versions
- BC23present
- BC24declaration changed
- BC25unchanged
- BC26declaration changed
- BC27unchanged
- BC2811 fields changed
- BC291 fields changed
- BC30unchanged
Neighbourhood 10 connected objects and pages
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
- Sales Code: TableRelation Table 18 “Customer” (conditional)
- Code: TableRelation Table 27 “Item” (conditional)
- Sales Code: TableRelation Table 340 “Customer Discount Group” (conditional)
- Code: TableRelation Table 341 “Item Discount Group” (conditional)
- Currency Code: TableRelation Table 4 “Currency”
- Sales Code: TableRelation Table 5071 “Campaign” (conditional)
- Variant Code: TableRelation Table 5401 “Item Variant”
- Unit of Measure Code: TableRelation Table 5404 “Item Unit of Measure”
Pages and codeunits on this table
- Page 7004 “Sales Line Discounts” (source table)
- Page 7009 “Get Sales Line Disc.” (source table)
Recent changes
- 2026-09-21 #11562 [Main] [ALL-E] Sales Line Discount % accepts 5 decimal places through Configuration Package import but rejects manual entry beyond 2 decimal places.Initial Commit (main, BC30, fix)
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.