code change · fixFinanceofficial - Microsoftreviewed - checked by Opus

#10884 [Bug Fix] Fix recurring journal background posting for IRS 1099 invoice lines (US)

Background posting of recurring journals no longer fails with a 'scheduled for posting' error on IRS 1099 invoice lines. The IRS 1099 subscriber now only derives the IRS fields onto the journal line and leaves saving it to the caller.

Pull request · merged into main (BC30) on 2026-09-07 by Explorer986 · 2 files (+136 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • The subscriber used Modify(true), which fired OnModify again and failed on lines already scheduled for posting
  • The self-save in the IRS 1099 subscriber was removed; IRS fields are still derived onto the line
  • The OnModify guard is unchanged and still protects user edits of scheduled lines
  • Three tests added covering scheduled invoice lines, blank document type lines and the unchanged guard
  • No schema, permission or upgrade impact
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#626641
  • Labels: Team: Finance
  • Systems: finance
  • From the description: “subscriber only derives the IRS fields onto the record and lets the owning caller persist”

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