---
id: change/bcapps/11218
type: change
title: "#11218 [master] - Subscription Contract Price Update applies the lowest sales price across all Unit of Measure codes instead of respecting Unit-Specific Price List entries in Subscription Billing."
summary: Subscription Contract Price Update now correctly respects unit-specific price list entries when calculating prices instead of applying the lowest price across all units of measure.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sub. contracts item management
  - table subscription line
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:05:33.072Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d99d535f7415b8eb5f71a0b694cd6c03f64787d0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11218
    title: "microsoft/BCApps#11218: [master] - Subscription Contract Price Update applies the lowest sales price across all Unit of Measure codes instead of respecting Unit-Specific Price List entries in Subscription Billing."
    date: "2026-09-10"
    commit: d99d535f7415b8eb5f71a0b694cd6c03f64787d0
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/8055
    - object/table/8059
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11218
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11218
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-10T08:54:01Z"
author: DhavalMore88
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 72
  deletions: 6
  al: 2
apps:
  - Subscription Billing
objects_touched:
  - key: codeunit/8055
    page: codeunit/8055
    type: codeunit
    id: 8055
    name: Sub. Contracts Item Management
    app: Subscription Billing
    status: modified
  - key: table/8059
    page: table/8059
    type: table
    id: 8059
    name: Subscription Line
    app: Subscription Billing
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649438
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11218 [master] - Subscription Contract Price Update applies the lowest sales price across all Unit of Measure codes instead of respecting Unit-Specific Price List entries in Subscription Billing.

> Subscription Contract Price Update now correctly respects unit-specific price list entries when calculating prices instead of applying the lowest price across all units of measure.

[Pull request](https://github.com/microsoft/BCApps/pull/11218) · merged into `main` (BC30) on 2026-09-10 by DhavalMore88 (community contribution) · 3 files (+72 -6), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Fixed price calculation to filter by the subscription's specific unit of measure
- Updated CreateTempSalesLine and CreateTempPurchaseLine procedures to populate Unit of Measure Code
- Ensured temporary sales/purchase lines pass the correct Unit of Measure for accurate price filtering
- Added test coverage to validate unit-specific price list behavior
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8055 "Sub. Contracts Item Management"](../../objects/codeunit/8055.md), Subscription Billing: modified
- [Table 8059 "Subscription Line"](../../objects/table/8059.md), Subscription Billing: modified

## Context

- Work items: AB#649438
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Finance
- Systems: development

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
