---
id: change/bcapps/12979
type: change
title: "#12979 [Main] Consistent Error Posting GST Distribution Reversal"
summary: GST Distribution Reversal posting now correctly handles rounding differences when distributed GST amounts contain decimals, applying the rounding adjustment to the first matching component line credit amount.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit gst distribution
system: finance
review:
  state: reviewed
  by: opus
  at: "2026-10-28T10:56:15.279Z"
  flags: []
generated:
  at: "2026-10-29T00:16:37.959Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 8281bccc700bac22cdd3a3bdf8587466d8c01d62
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12979
    title: "microsoft/BCApps#12979: [Main] Consistent Error Posting GST Distribution Reversal"
    date: "2026-10-26"
    commit: 8281bccc700bac22cdd3a3bdf8587466d8c01d62
    t: null
    quote: Posting a GST Distribution Reversal fails with an error when the distributed GST amounts have decimals.
links:
  learn: []
  objects:
    - object/codeunit/18200-in
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-Input-Service-Distribution-Process
      title: Input Service Distribution Process
      label: possibly related
      why: GST Input Service Distribution Process documents GST distribution posting relevant to reversal operations.
      by: model
number: 12979
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12979
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-26T21:22:28Z"
author: Shikhverma
author_type: User
community_contribution: false
labels:
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 77
  deletions: 20
  al: 1
apps:
  - INGST
objects_touched:
  - key: codeunit/18200
    page: codeunit/18200-in
    type: codeunit
    id: 18200
    name: GST Distribution
    app: INGST
    status: modified
objects_unjoined: []
obsoletions: []
backports:
  - number: 13084
    base: releases/29.x
    url: https://github.com/microsoft/BCApps/pull/13084
fixes_issues: []
work_items:
  - 654806
systems:
  - finance
quote: Posting a GST Distribution Reversal fails with an error when the distributed GST amounts have decimals.
joined_against:
  major: "30"
  commit: 15385dede95a4f9e7be01be47c684fc9d654a7ce
---

# #12979 [Main] Consistent Error Posting GST Distribution Reversal

> GST Distribution Reversal posting now correctly handles rounding differences when distributed GST amounts contain decimals, applying the rounding adjustment to the first matching component line credit amount.

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

## What changed

- GST amounts are rounded per component line during distribution, creating rounding differences
- Normal distributions apply rounding difference to the debit amount, but reversals did not
- Reversals failed because total credit amounts differed from original GST amount by the rounding difference
- Solution applies the same rounding logic to reversals by adding the difference to the first matching component line credit amount
- Whole amount reversals were not affected and continue to work
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 18200 "GST Distribution"](../../objects/codeunit/18200-in.md), INGST (IN layer): modified

## Also merged into

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

## Context

- Work items: AB#654806
- Labels: Team: Finance
- Systems: finance
- From the description: "Posting a GST Distribution Reversal fails with an error when the distributed GST amounts have decimals."

## Possibly related

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

- [Input Service Distribution Process](https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/India/GST-Input-Service-Distribution-Process) — possibly related: GST Input Service Distribution Process documents GST distribution posting relevant to reversal operations. (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).
