---
id: object/codeunit/7018
type: object
title: Codeunit 7018 "Price UX Management"
summary: Codeunit 7018 "Price UX Management" in Base Application (Microsoft.Pricing.PriceList). 28 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.
tier: official
language: en
tags:
  - codeunit
  - 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: ace3fc30b686c282e666bee9bc80a5e1e9094516891abafa6d65216aa7fc4551
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/PriceList/PriceUXManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/Pricing/PriceList/PriceUXManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10631
    - change/bcapps/10377
object_type: codeunit
object_id: 7018
name: Price UX Management
namespace: Microsoft.Pricing.PriceList
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 52
  events: 11
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 18
  implements: 0
---

# Codeunit 7018 "Price UX Management"

> Codeunit 7018 "Price UX Management" in Base Application (Microsoft.Pricing.PriceList). 28 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24, BC26, BC28.

Base Application · Microsoft.Pricing.PriceList · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Pricing/PriceList/PriceUXManagement.Codeunit.al) · facts from BC29

## Events published

- `OnBeforeShowPriceLists(FromRecord: Variant; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type"; var Handled: Boolean)` (integration)
- `OnBeforeShowPriceListLines(PriceSource: Record "Price Source"; var PriceAsset: Record "Price Asset"; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type"; var IsHandled: Boolean)` (integration)
- `OnBeforeGetPriceSource(FromRecord: Variant; PriceType: Enum "Price Type"; var PriceSourceList: Codeunit "Price Source List")` (integration)
- `OnAfterGetPriceSource(FromRecord: Variant; var PriceSourceList: Codeunit "Price Source List")` (integration)
- `OnShowPriceListLinesOnAfterPriceAssetListAdd(PriceAsset: Record "Price Asset"; PriceType: Enum "Price Type"; var PriceAssetList: Codeunit "Price Asset List"; var PriceListLineReview: Page "Price List Line Review")` (integration)
- `OnAfterSelectPriceLists(var PriceListHeader: Record "Price List Header"; var PriceListCode: Code[20])` (integration)
- `OnAfterLookupPriceLists(var PriceListHeader: Record "Price List Header"; var SourceGroup: Enum "Price Source Group"; PriceType: Enum "Price Type"; var PriceListCode: Code[20]; var Result: Boolean)` (integration)
- `OnAfterEditPriceList(var PriceListHeader: Record "Price List Header"; var PriceListCode: Code[20])` (integration)
- `OnAfterShowPriceLists(PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type"; PriceType: Enum "Price Type")` (integration)
- `OnBeforeRunPurchasePriceList(var PurchasePriceLists: Page "Purchase Price Lists"; var PriceListHeader: Record "Price List Header")` (integration)
- `OnBeforeRunSalesPriceList(var SalesPriceLists: Page "Sales Price Lists"; var PriceListHeader: Record "Price List Header")` (integration)

## Procedures

- `GetFirstSourceFromFilter(var PriceListHeader: Record "Price List Header"; var PriceSource: Record "Price Source"; DefaultSourceType: Enum "Price Source Type")`
- `IsAmountTypeFiltered(var PriceListHeader: Record "Price List Header"): Boolean`
- `IsAmountTypeFiltered(var PriceListHeader: Record "Price List Header"; var FirstFilterValue: Enum "Price Amount Type"): Boolean`
- `GetSupportedMethods(var TempPriceCalculationSetup: Record "Price Calculation Setup" temporary; var ImplementationsPerMethod: Dictionary of [Integer, Integer])`
- `PickImplementation(var CurrPriceCalculationSetup: Record "Price Calculation Setup")`
- `LookupPriceLists(SourceGroup: Enum "Price Source Group"; PriceType: Enum "Price Type"; var PriceListCode: Code[20]): Boolean`
- `EditPriceList(PriceListCode: Code[20])`
- `ShowExceptions(CurrPriceCalculationSetup: Record "Price Calculation Setup")`
- `ShowPriceLists(Campaign: Record Campaign; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `ShowPriceLists(Contact: Record Contact; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `ShowPriceLists(Customer: Record Customer; AmountType: Enum "Price Amount Type")`
- `ShowPriceLists(CustomerDiscountGroup: Record "Customer Discount Group")`
- `ShowPriceLists(CustomerPriceGroup: Record "Customer Price Group")`
- `ShowPriceLists(Vendor: Record Vendor; AmountType: Enum "Price Amount Type")`
- `ShowPriceLists(Job: Record Job; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `ShowPriceListLines(PriceAsset: Record "Price Asset"; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `ShowPriceListLines(PriceSource: Record "Price Source"; PriceAsset: Record "Price Asset"; AmountType: Enum "Price Amount Type")`
- `ShowPriceListLines(PriceSource: Record "Price Source"; AmountType: Enum "Price Amount Type")`
- `ShowPriceLists(PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type")`
- `SetPriceListsFilters(var PriceListHeader: Record "Price List Header"; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `SetPriceListsFilters(var PriceListHeader: Record "Price List Header"; PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type")`
- `SetPriceListLineFilters(var PriceListLine: Record "Price List Line"; PriceSourceList: Codeunit "Price Source List"; AmountType: Enum "Price Amount Type")`
- `SetPriceListLineFilters(PriceAssetList: Codeunit "Price Asset List"; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type"): Boolean`
- `SetPriceListLineFilters(var PriceListLine: Record "Price List Line"; PriceAssetList: Codeunit "Price Asset List"; PriceType: Enum "Price Type"; AmountType: Enum "Price Amount Type")`
- `SetPriceListLineFilters(var PriceListLine: Record "Price List Line"; PriceSource: Record "Price Source"; PriceAssetList: Codeunit "Price Asset List"; AmountType: Enum "Price Amount Type")`
- `GetFirstAlternateSetupCode(CurrPriceCalculationSetup: Record "Price Calculation Setup"): Code[100]`
- `PickAlternateImplementation(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup")`
- `TestAlternateImplementation(CurrPriceCalculationSetup: Record "Price Calculation Setup")`

Plus 13 local procedures.

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 7011 "Price Source List"](../codeunit/7011.md) (4 calls: `AddAllSourceType → Add`, `GetPriceSource → Add`, `GetPriceSource → SetPriceType`, …)
- [Codeunit 7007 "Price Asset List"](../codeunit/7007.md) (2 calls: `ShowPriceListLines → Add`, `ShowPriceListLines → Init`)
- [Codeunit 7017 "Price List Management"](../codeunit/7017.md) (1 call: `SetPriceListLineFilters → SetPriceListLineFilters`)
- [Page 7016 "Sales Price List"](../page/7016.md) (1 call: `EditPriceList → (object)`)
- [Page 7018 "Purchase Price List"](../page/7018.md) (1 call: `EditPriceList → (object)`)
- [Page 7028 "Price Calc. Implementations"](../page/7028.md) (1 call: `PickAlternateImplementation → (object)`)

## Called by

- [Page 7008 "Dtld. Price Calculation Setup"](../page/7008.md) (2 calls: `OnNewRecord → GetFirstAlternateSetupCode`, `OnOpenPage → TestAlternateImplementation`)
- [Page 7015 "Sales Price Lists"](../page/7015.md) (2 calls: `SetAsset → SetPriceListsFilters`, `SetSource → SetPriceListsFilters`)
- [Page 7016 "Sales Price List"](../page/7016.md) (2 calls: `OnNewRecord → IsAmountTypeFiltered`, `OnOpenPage → GetFirstSourceFromFilter`)
- [Page 7017 "Purchase Price Lists"](../page/7017.md) (2 calls: `SetAsset → SetPriceListsFilters`, `SetSource → SetPriceListsFilters`)
- [Page 7018 "Purchase Price List"](../page/7018.md) (2 calls: `OnNewRecord → IsAmountTypeFiltered`, `OnOpenPage → GetFirstSourceFromFilter`)
- [Page 30 "Item Card"](../page/30.md) (1 call: `GetPriceActionText → SetPriceListLineFilters`)
- [Page 7005 "Price List Line Review"](../page/7005.md) (1 call: `Set → SetPriceListLineFilters`)
- [Page 7019 "Sales Job Price Lists"](../page/7019.md) (1 call: `SetSource → SetPriceListsFilters`)
- [Page 7020 "Purchase Job Price Lists"](../page/7020.md) (1 call: `SetSource → SetPriceListsFilters`)
- [Page 7025 "Price Calculation Methods"](../page/7025.md) (1 call: `OnOpenPage → GetSupportedMethods`)
- [Table 15 "G/L Account"](../table/15.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 152 "Resource Group"](../table/152.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 156 "Resource"](../table/156.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 167 "Job"](../table/167.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 27 "Item"](../table/27.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 341 "Item Discount Group"](../table/341.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 5905 "Service Cost"](../table/5905.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)
- [Table 99 "Item Vendor"](../table/99.md) (1 call: `ShowPriceListLines → ShowPriceListLines`)

## Recent changes

- 2026-08-26 [#10631 Integration/main to releases 29.x 31a860b5](../../changes/bcapps/10631.md) (releases/29.x, BC29, feature)
- 2026-08-25 [#10377 [Main][ALL-E] Sales Price from customer card and Purcase Price from vendor card is showing "All Customers/All Vendors" as header instead of the specific customer/vendor informationInitial commit](../../changes/bcapps/10377.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26, 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). The call sections above are our own, per object, from the BC29 call graph. 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: "codeunit", object_name: "Price UX Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
