code change · fixIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#9711 Fix E-Document purchase draft header Sub Total overwrite; notify on mismatch

E-Document purchase draft no longer silently overwrites the header Sub Total when lines are edited. Users are now notified when the header total diverges from the line totals beyond a rounding tolerance, with options to dismiss or ignore future warnings.

Pull request · merged into main (BC30) on 2026-08-14 by ventselartur · 8 files (+1587 -63), 6 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Purchase draft header Sub Total is preserved from the incoming document instead of being recalculated
  • Added tolerance-based mismatch detection (rounding precision × line count) between header and line totals
  • Notifications appear on the purchase draft subform with Dismiss and Don’t-show-again actions
  • Mismatch dismissal is persisted on the E-Document Purchase Header and re-arms when amounts are edited
  • Telemetry logging captures detected mismatches with totals, tolerance, and difference values
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#642364
  • Labels: AL: Apps (W1), Team: Integrations
  • Systems: integration
  • From the description: “The header total should be preserved, and the user should instead be warned when it diverges from the lines beyond a rounding tolerance.”

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