[Master]-]Withholding Tax Entries are not generated at payment because the Withholding Tax. Prod. Posting Group field gets not transferred to the payment line.#9323
Conversation
Copilot PR ReviewIteration 6 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@822cae1b2771ac25f665f73369f69093bd4fd630 Findings by domainFindings split into Knowledge-backed (cite a BCQuality article) and Agent (the agent's own judgement, no matching BCQuality rule).
Totals: 0 knowledge-backed · 1 agent findings. Orchestrator pre-filter (13 file(s) excluded)
Findings produced by the Copilot CLI agent against BCQuality at |
…ldingTaxJnlSubscriber.Codeunit.al Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
| DocumentNo: Code[20]; | ||
| StartingDocumentNo: Code[20]; | ||
| begin | ||
| // [SCENARIO 639524] Withholding Tax Prod. Post. Group travels from the applied Invoice to the Payment line via the Create Payment action and Withholding Tax Entries are generated when the Payment is posted. |
There was a problem hiding this comment.
The new test's [SCENARIO] comment states that 'Withholding Tax Entries are generated when the Payment is posted', but the test never posts the generated payment Gen.
Journal Line and never asserts anything against the Withholding Tax Entry table. Only the propagation of 'Wthldg. Tax Prod. Post. Group' onto the unposted payment line is verified.
Recommendation:
- either extend the test to post the payment line and assert the resulting Withholding Tax Entry, or narrow the [SCENARIO] comment to match the actual assertions so the test's documented intent matches its real coverage.
👍 useful · ❤️ especially valuable · 👎 wrong - reply with why
AB#639524