code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#14008 [MAIN] Fix customer GST application posting sequence (Bug 659070)

Fixed a posting sequence error when applying GST advance payments against sales invoices with different customer posting groups by deferring GST journal posting until after customer application posting completes.

Pull request · merged into main (BC30) on 2026-11-19 by v-ajaztabrez · 2 files (+22 -7), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Resolves the ‘G/L Entry already exists’ error when applying a GST advance payment to a sales invoice with a different customer posting group
  • Cause: GST application entries were posted early through a separate Gen. Jnl.-Post Line instance while customer application posting was still running
  • Offline customer GST journal posting is now deferred until customer application posting finishes
  • Uses the shared Gen. Jnl.-Post Line instance supplied by OnAfterPostApplyCustLedgEntry
  • Affects both application posting and its preview
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#659070
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “Defer offline customer GST journal posting until customer application posting finishes.”

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

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