---
id: change/bcapps/11380
type: change
title: "#11380 Honor explicit 0% discounts in Sales and Purchase price lists"
summary: Fixed price calculation to honor explicit 0% discounts in Sales and Purchase price lists by distinguishing discount declarations from incidental zero amounts, allowing specific zero-discount lines to override generic positive discounts.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit price calculation - v16
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-19T01:10:58.407Z"
  flags: []
generated:
  at: "2026-11-22T00:17:50.598Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: cffa50a236d199618af295012771b0c1b0992da3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11380
    title: "microsoft/BCApps#11380: Honor explicit 0% discounts in Sales and Purchase price lists"
    date: "2026-10-08"
    commit: cffa50a236d199618af295012771b0c1b0992da3
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/7002
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-prices-and-discounts
      title: Set up prices and discounts
      label: possibly related
      why: Documents setting up sales and purchase prices and discounts in price lists
      by: model
number: 11380
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11380
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-08T13:20:08Z"
author: attilatoury
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Ownership: Manual"
  - "Team: SCM"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 603
  deletions: 4
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/7002
    page: codeunit/7002
    type: codeunit
    id: 7002
    name: Price Calculation - V16
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 12844
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/12844
fixes_issues: []
work_items:
  - 649151
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #11380 Honor explicit 0% discounts in Sales and Purchase price lists

> Fixed price calculation to honor explicit 0% discounts in Sales and Purchase price lists by distinguishing discount declarations from incidental zero amounts, allowing specific zero-discount lines to override generic positive discounts.

[Pull request](https://github.com/microsoft/BCApps/pull/11380) · merged into `main` (BC30) on 2026-10-08 by attilatoury · 3 files (+603 -4), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- A line declares a discount when amount type is `Discount` or discount percentage is positive
- Explicit 0% can win through existing specificity rules; 0% in Price & Discount remains incidental
- Candidate acceptance happens before OnAfterIsBetterLine event, preserving subscriber vetoes
- At equal specificity, highest eligible discount still wins; explicit zero is not unconditional veto
- Covers Sales and Purchase price lists with variant and currency specificity; affects Shopify product price calculator
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 7002 "Price Calculation - V16"](../../objects/codeunit/7002.md), Base Application: modified

## Also merged into

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

## Context

- Work items: AB#649151
- Labels: AL: Apps (W1), Ownership: Manual, Team: SCM
- Systems: development

## Possibly related

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

- [Set up prices and discounts](https://learn.microsoft.com/dynamics365/business-central/across-prices-and-discounts) — possibly related: Documents setting up sales and purchase prices and discounts in price lists (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).
