---
id: object/page/1347
type: object
title: Page 1347 "Sales Pr. & Line Disc. Part"
summary: Page 1347 "Sales Pr. & Line Disc. Part" in Base Application (Microsoft.Sales.Pricing). 7 public procedures. Present since at least BC23, still in BC30, changed in BC24-25, BC28.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 882a9fa31d602410da800a068c106cb1df63ccbf2552723a03ee6a666d51e436
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Pricing/SalesPrLineDiscPart.Page.al
    title: src/Layers/W1/BaseApp/Sales/Pricing/SalesPrLineDiscPart.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 1347
name: Sales Pr. & Line Disc. Part
caption: Sales Prices
namespace: Microsoft.Sales.Pricing
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 10
  events: 0
  subscribers: 0
  controls: 17
  actions: 5
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Page 1347 "Sales Pr. & Line Disc. Part"

> Page 1347 "Sales Pr. & Line Disc. Part" in Base Application (Microsoft.Sales.Pricing). 7 public procedures. Present since at least BC23, still in BC30, changed in BC24-25, BC28.

Base Application · Microsoft.Sales.Pricing · captioned "Sales Prices" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Pricing/SalesPrLineDiscPart.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Sales Prices |
| SourceTable | Sales Price and Line Disc Buff |
| PageType | ListPart |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Group | Line Type | [Line Type](../table/1304.md#fields) | Specifies if the line is for a sales price or a sales line discount. <small>from the table field</small> |
|  | Sales Type | [Sales Type](../table/1304.md#fields) | Specifies the sales type of the price or discount. The sales type defines whether the sales price or discount is for an individual customer, a customer discount group, or for all customers. <small>from the table field</small> |
|  | Sales Code | [Sales Code](../table/1304.md#fields) | Specifies the sales code of the price or discount. The sales code depends on the value in the Sales Type field. The code can represent an individual customer, a customer discount group, or for all customers. <small>from the table field</small> |
|  | Type | [Type](../table/1304.md#fields) | Specifies if the discount is valid for an item or for an item discount group. <small>from the table field</small> |
|  | Code | [Code](../table/1304.md#fields) | Specifies a code for the sales line price or discount. <small>from the table field</small> |
|  | Unit of Measure Code | [Unit of Measure Code](../table/1304.md#fields) | 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. <small>from the table field</small> |
|  | Minimum Quantity | [Minimum Quantity](../table/1304.md#fields) | Specifies the quantity that must be entered on the sales document to warrant the sales price or discount. <small>from the table field</small> |
|  | Line Discount % | [Line Discount %](../table/1304.md#fields) | Specifies the discount percentage that is granted for the item on the line. <small>from the table field</small> |
|  | Unit Price | [Unit Price](../table/1304.md#fields) | 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. <small>from the table field</small> |
|  | Starting Date | [Starting Date](../table/1304.md#fields) | Specifies the date from which the sales line discount is valid. <small>from the table field</small> |
|  | Ending Date | [Ending Date](../table/1304.md#fields) | Specifies the date to which the sales line discount is valid. <small>from the table field</small> |
|  | Currency Code | [Currency Code](../table/1304.md#fields) | Specifies the currency that must be used on the sales document line to warrant the sales price or discount. <small>from the table field</small> |
|  | Price Includes VAT | [Price Includes VAT](../table/1304.md#fields) | Specifies if the price that is granted includes VAT. <small>from the table field</small> |
|  | Allow Invoice Disc. | [Allow Invoice Disc.](../table/1304.md#fields) | Specifies if an invoice discount will be calculated when the sales price is offered. <small>from the table field</small> |
|  | VAT Bus. Posting Gr. (Price) | [VAT Bus. Posting Gr. (Price)](../table/1304.md#fields) | Specifies the VAT business posting group for customers who you want to apply the sales price to. This price includes VAT. |
|  | Variant Code | [Variant Code](../table/1304.md#fields) | Specifies the variant that must be used on the sales document line to warrant the sales price or discount. <small>from the table field</small> |
|  | Allow Line Disc. | [Allow Line Disc.](../table/1304.md#fields) | Specifies if line discounts are allowed. <small>from the table field</small> |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Show Current Only | Show only valid price and discount agreements that have ending dates later than today's date. |  |
|  | Show All | Show all price and discount agreements, including those with ending dates earlier than today's date. |  |
|  | Refresh Data | Update sales prices or sales line discounts with values that other users may have added for the customer since you opened the window. |  |
|  | Set Special Prices | Set up different prices for items that you sell to the customer. An item price is automatically granted on invoice lines when the specified criteria are met, such as customer, quantity, or ending date. |  |
|  | Set Special Discounts | Set up different discounts for items that you sell to the customer. An item discount is automatically granted on invoice lines when the specified criteria are met, such as customer, quantity, or ending date. |  |

## Procedures

- `InitPage(ForItem: Boolean)`: Initializes the page layout based on whether it is displayed for an item or a customer.
- `LoadItem(Item: Record Item)`: Loads price and line discount data for the specified item.
- `LoadCustomer(var Customer: Record Customer)`: Loads price and line discount data for the specified customer.
- `GetLoadedItemNo(): Code[20]`: Gets the item number that was loaded for this page.
- `SetLoadedCustno(NewCustomerNo: Code[20])`: Sets the loaded customer number and clears existing data if it differs from the current value.
- `GetLoadedCustNo(): Code[20]`: Gets the customer number that was loaded for this page.
- `RunUpdatePriceIncludesVatAndPrices(IncludesVat: Boolean)`: Updates the price includes VAT flag and recalculates prices for the loaded item.

Plus 3 local procedures.

## Triggers

OnFindRecord, OnAfterGetCurrRecord, OnNewRecord

## Relations

- source table [Table 1304 "Sales Price and Line Disc Buff"](../table/1304.md)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25, BC28

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: "page", object_name: "Sales Pr. & Line Disc. Part")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
