---
id: change/bcapps/12998
type: change
title: "#12998 [main] Discount is not taken into account on Renewal Offer using Sales Quote for Subscription Billing report layout."
summary: The Subscription Billing renewal quote report now correctly applies discounts to line amounts, fixing a logic error that prevented discount copying to renewal subscription lines.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit create sub. contract renewal
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-28T10:56:09.594Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d03c39293af2e4fd4ecbb0f90770d3969faf52ab
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12998
    title: "microsoft/BCApps#12998: [main] Discount is not taken into account on Renewal Offer using Sales Quote for Subscription Billing report layout."
    date: "2026-10-26"
    commit: d03c39293af2e4fd4ecbb0f90770d3969faf52ab
    t: null
    quote: A self-comparison of the discount percentage always evaluated to false, preventing the discount from being copied to the Sales Subscription Line.
links:
  learn: []
  objects:
    - object/codeunit/8002
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/reports/report-8011
      title: Contract Standard Sales Quote report
      label: possibly related
      why: Documents the Contract Standard Sales Quote report that extends sales quotes with subscription billing information.
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/contract-renewal
      title: Subscription contract renewal
      label: possibly related
      why: Documents subscription contract renewal using sales quotes and converting to orders to update subscription lines.
      by: model
number: 12998
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12998
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-26T10:05:53Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 49
  deletions: 2
  al: 1
apps:
  - Subscription Billing
objects_touched:
  - key: codeunit/8002
    page: codeunit/8002
    type: codeunit
    id: 8002
    name: Create Sub. Contract Renewal
    app: Subscription Billing
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13239
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13239
fixes_issues: []
work_items:
  - 655904
systems:
  - sales
quote: A self-comparison of the discount percentage always evaluated to false, preventing the discount from being copied to the Sales Subscription Line.
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #12998 [main] Discount is not taken into account on Renewal Offer using Sales Quote for Subscription Billing report layout.

> The Subscription Billing renewal quote report now correctly applies discounts to line amounts, fixing a logic error that prevented discount copying to renewal subscription lines.

[Pull request](https://github.com/microsoft/BCApps/pull/12998) · merged into `main` (BC30) on 2026-10-26 by Shikhverma · 2 files (+49 -2), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Discount percentage comparison logic was always false, blocking discount transfer
- Discount is now properly applied after setting the renewal subscription line price
- Added regression test confirming 50 price with 10% discount yields 45 total
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8002 "Create Sub. Contract Renewal"](../../objects/codeunit/8002.md), Subscription Billing: modified

## Also merged into

- [#13239](https://github.com/microsoft/BCApps/pull/13239) into `releases/29.x` on 2026-10-26

## Context

- Work items: AB#655904
- Labels: AL: Apps (W1), Team: Finance
- Systems: sales
- From the description: "A self-comparison of the discount percentage always evaluated to false, preventing the discount from being copied to the Sales Subscription Line."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Contract Standard Sales Quote report](https://learn.microsoft.com/dynamics365/business-central/reports/report-8011) — possibly related: Documents the Contract Standard Sales Quote report that extends sales quotes with subscription billing information. (model-linked)
- [Subscription contract renewal](https://learn.microsoft.com/dynamics365/business-central/SRB/working-with-contracts/contract-renewal) — possibly related: Documents subscription contract renewal using sales quotes and converting to orders to update subscription lines. (model-linked)

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).
