---
title: "Codeunit 6436 E-Doc. Draft Notif. State, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/points/
object: https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/
app: "E-Document Core"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6436 E-Doc. Draft Notif. State, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/points/

18 procedures and triggers with a step in src/Apps/W1/EDocument/App/src/Document/Notification/EDocDraftNotifState.Codeunit.al, in source order, read from the text, not from a run.

## RefreshSubTotalMismatch

[Line 34](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L34).

- [42](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L42) calls `GetRoundingPrecision`
- [43](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L43) calls `CalculateLinesSubTotal`
- [44](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L44) calls `ApplyMismatchState`

## RefreshSubTotalMismatchAfterHeaderEdit

[Line 54](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L54).

- [58](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L58) calls `ReArmSubTotalMismatch`
- [59](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L59) calls `RefreshSubTotalMismatch`

## RefreshSubTotalMismatchAfterLineEdit

[Line 69](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L69).

- [76](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L76) calls `GetHeaderForLine`
- [78](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L78) calls `ReArmSubTotalMismatch`
- [79](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L79) calls `GetRoundingPrecision`
- [80](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L80) calls `CalculateLinesSubTotalWithPendingLine`
- [81](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L81) calls `ApplyMismatchState`

## RefreshSubTotalMismatchAfterLineDeletion

[Line 92](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L92).

- [99](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L99) calls `GetHeaderForLine`
- [101](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L101) calls `ReArmSubTotalMismatch`
- [102](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L102) calls `GetRoundingPrecision`
- [103](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L103) calls `CalculateLinesSubTotalExcludingLine`
- [104](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L104) calls `ApplyMismatchState`

## AddVendorMatchedByNameNotAddress

[Line 113](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L113).

- [115](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L115) calls `AddNotification`
- [115](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L115) calls `VendorMatchedByNameNotAddressNotificationId`

## AddSubTotalMismatch

[Line 123](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L123).

- [125](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L125) calls `AddNotification`
- [125](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L125) calls `SubTotalMismatchNotificationId`

## AddNotification

[Line 128](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L128), local.

- [134](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L134) validates [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) `E-Document Entry No.`
- [135](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L135) validates [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) `ID`
- [136](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L136) validates [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) `User Id`
- [137](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L137) validates [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) `Type`
- [138](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L138) validates [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) `Message`
- [139](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L139) writes [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) Insert(true)

## RemoveSubTotalMismatch

[Line 146](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L146).

- [150](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L150) calls `SubTotalMismatchNotificationId`
- [151](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L151) writes [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) Delete(true)

## ReArmSubTotalMismatch

[Line 158](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L158).

- [162](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L162) calls `SubTotalMismatchNotificationId`
- [165](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L165) writes [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) Delete(true)

## MarkDismissed

[Line 173](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L173).

- [180](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L180) writes [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) Modify(true)

## DeleteAllOfType

[Line 187](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L187).

- [193](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L193) writes [Table 6126 E-Document Notification](https://jonas-paprotka.de/ref/table/6126-e-document-notification/) DeleteAll(true)

## SubTotalMismatchExists

[Line 227](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L227).

- [231](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L231) calls `SubTotalMismatchNotificationId`

## IsSubTotalMismatchDismissed

[Line 238](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L238).

- [242](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L242) calls `SubTotalMismatchNotificationId`

## ApplyMismatchState

[Line 257](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L257), local.

- [273](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L273) calls `DifferenceMagnitudeBucket`
- [276](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L276) calls `RemoveSubTotalMismatch`
- [281](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L281) calls `SubTotalMismatchExists`
- [283](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L283) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`
- [285](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L285) calls `IsSubTotalMismatchDismissed`
- [287](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L287) calls `AddSubTotalMismatch`
- [289](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L289) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## GetRoundingPrecision

[Line 299](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L299), local.

- [303](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L303) calls [Codeunit 6109 E-Document Import Helper](https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/) `GetCurrencyRoundingPrecision`

## CalculateLinesSubTotal

[Line 306](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L306), local.

- [311](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L311) calls `FindLines`
- [314](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L314) calls `LineSubTotal`

## CalculateLinesSubTotalWithPendingLine

[Line 319](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L319), local.

- [325](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L325) calls `FindLines`
- [329](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L329) calls `LineSubTotal`
- [331](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L331) calls `LineSubTotal`
- [336](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L336) calls `LineSubTotal`

## CalculateLinesSubTotalExcludingLine

[Line 341](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L341), local.

- [346](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L346) calls `FindLines`
- [350](https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/#L350) calls `LineSubTotal`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
