---
id: change/bcapps/13613
type: change
title: "#13613 [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: Fixes incorrect Additional Currency Base and Additional Currency Amount in VAT/GST entries in the Australian version by changing purchase invoice posting. The change brings additional fixes and regression tests from the 29.x branch into main.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit purch. post invoice
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:59.904Z"
  flags: []
generated:
  at: "2026-11-29T00:16:19.301Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e35755efb9493c02a173819e83c620c71b26efd2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13613
    title: "microsoft/BCApps#13613: [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-11-24"
    commit: e35755efb9493c02a173819e83c620c71b26efd2
    t: null
    quote: "Brings the differences between 29.x PR #11723 and main PR #11434 into main, following review comments on the 29.x PR."
links:
  learn: []
  objects:
    - object/codeunit/816
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Australia/tax
      title: Australian Tax overview
      label: possibly related
      why: Documents Australian tax including GST calculations on sales invoices with discounts.
      by: model
number: 13613
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13613
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-24T06:01:21Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 439
  deletions: 5
  al: 1
apps:
  - Base Application
objects_touched:
  - key: codeunit/816
    page: codeunit/816
    type: codeunit
    id: 816
    name: Purch. Post Invoice
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 11723
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/11723
fixes_issues: []
work_items:
  - 649279
systems:
  - purchasing
quote: "Brings the differences between 29.x PR #11723 and main PR #11434 into main, following review comments on the 29.x PR."
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13613 [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

> Fixes incorrect Additional Currency Base and Additional Currency Amount in VAT/GST entries in the Australian version by changing purchase invoice posting. The change brings additional fixes and regression tests from the 29.x branch into main.

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

## What changed

- Corrects Additional Currency Base and Additional Currency Amount calculations when line discounts are applied
- Addresses VAT/GST entry calculations in purchase posting for APAC/Australian localization
- Includes regression tests to prevent similar issues in the future
- Aligns main branch with fixes from 29.x branch after review feedback
- Behaviour changes for users or extensions.

## AL objects touched

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

## Also merged into

- [#11723](https://github.com/microsoft/BCApps/pull/11723) into `releases/29.x` on 2026-11-03

## Context

- Work items: AB#649279
- Labels: Team: Finance
- Systems: purchasing
- From the description: "Brings the differences between 29.x PR #11723 and main PR #11434 into main, following review comments on the 29.x PR."

## Possibly related

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

- [Australian Tax overview](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Australia/tax) — possibly related: Documents Australian tax including GST calculations on sales invoices with discounts. (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).
