---
id: change/bcapps/11434
type: change
title: "#11434 [main] Incorrect Additional Currency Base and Additional Currency Amount calculation in VAT/GST Entries when Line Discount is applied on Sales Invoice in the Australian version."
summary: Fixed incorrect additional currency base and amount calculations in VAT entries for sales invoices with line discounts in the Australian version.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit sales post invoice
system: sales
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:04:18.253Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: ddbae8d02289a3ff56495ce9fe124be0044007a9
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/11434
    title: "microsoft/BCApps#11434: [main] Incorrect Additional Currency Base and Additional Currency Amount calculation in VAT/GST Entries when Line Discount is applied on Sales Invoice in the Australian version."
    date: "2026-09-21"
    commit: ddbae8d02289a3ff56495ce9fe124be0044007a9
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/815
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 11434
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/11434
kind: pr
base_branch: main
major: "30"
merged_at: "2026-09-21T14:01:11Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Ownership: Manual"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 203
  deletions: 6
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/815
    page: codeunit/815
    type: codeunit
    id: 815
    name: Sales Post Invoice
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 649279
systems:
  - sales
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #11434 [main] Incorrect Additional Currency Base and Additional Currency Amount calculation in VAT/GST Entries when Line Discount is applied on Sales Invoice in the Australian version.

> Fixed incorrect additional currency base and amount calculations in VAT entries for sales invoices with line discounts in the Australian version.

[Pull request](https://github.com/microsoft/BCApps/pull/11434) · merged into `main` (BC30) on 2026-09-21 by Shikhverma · 3 files (+203 -6), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- VAT entries now derive additional currency amounts from their own record's local currency amounts instead of inheriting a single line-level value
- Additional currency fields recalculated per posting record using proper exchange rate conversion with ACY rounding precision
- Discount VAT entries now receive correct sign and amount instead of duplicating the sales VAT entry values
- Amount including VAT (ACY) computed by addition to maintain exact consistency between base and VAT amounts
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 815 "Sales Post Invoice"](../../objects/codeunit/815.md), Base Application (AU layer): modified

## Context

- Work items: AB#649279
- Labels: Ownership: Manual, Team: Finance
- Systems: sales

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