#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.
- 8files
- 6AL files
- 6objects
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
- Codeunit 6436 “E-Doc. Draft Notif. State”, EDocument: added
- Codeunit 6123 “E-Document Notification”, EDocument: modified
- Table 6126 “E-Document Notification”, EDocument: modified
- Enum 6126 “E-Document Notification Type”, EDocument: modified
- Page 6183 “E-Doc. Purchase Draft Subform”, EDocument: modified
- Page 6181 “E-Document Purchase Draft”, EDocument: modified
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).