Skip to content

Fix VAT adjustment register - #13216

Open
Alexander Yakunin (Alexander-Ya) wants to merge 1 commit into
mainfrom
bugs/656025-vat-adjustment-register
Open

Alexander Yakunin (Alexander-Ya) wants to merge 1 commit into
mainfrom
bugs/656025-vat-adjustment-register

Conversation

@Alexander-Ya

@Alexander-Ya Alexander Yakunin (Alexander-Ya) commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What & why

Linked work

Fixes AB#656025

How I validated this

  • I read the full diff and it contains only changes I intended.
  • I built the affected app(s) locally with no new analyzer warnings.
  • I ran the change in Business Central and confirmed it behaves as expected.
  • I added or updated tests for the new behavior, or explained below why none are needed.

What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)

Risk & compatibility

@github-actions github-actions Bot added the Team: Finance GitHub request for Finance area label Oct 23, 2026
@github-actions github-actions Bot added this to the Version 30.0 milestone Oct 23, 2026
GenJournalLine.Validate("Pmt. Discount Date", WorkDate());
GenJournalLine.Modify(true);
CreateGLAccountInvoiceGenJnlLine(GenJournalLine, GLAccountNo, -InvoiceSign * 1190);
LibraryERM.PostGeneralJnlLine(GenJournalLine);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$\textbf{🟠\ High\ Severity\ —\ Testing}$

The new payment-discount tests post journal lines through the posting routine, which can call COMMIT, but the test methods do not declare TransactionModel::AutoCommit. Under the default AutoRollback model the tests can fail at the transaction boundary instead of producing a business-logic verdict; add the appropriate transaction model and ensure the test runner provides isolation for the committed writes.

Knowledge:

The same issue exists in these regional copies — apply the equivalent fix in each:

  • src/Layers/CZ/Tests/VAT/ERMPmtDiscAndVATCustVend.Codeunit.al:682 (CZ)

👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.51.6

This branch was successfully deployed

1 active deployment
triage — 4745edac Deployed Oct 23, 2026 by Alexander-Ya via Classify team ownership #8853
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team: Finance GitHub request for Finance area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant