{"title":"Codeunit 6436 E-Doc. Draft Notif. State, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":6436,"name":"E-Doc. Draft Notif. State","app":"E-Document Core","url":"https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6436-e-doc-draft-notif-state/source/","path":"src/Apps/W1/EDocument/App/src/Document/Notification/EDocDraftNotifState.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:6126":{"name":"E-Document Notification","url":"https://jonas-paprotka.de/ref/table/6126-e-document-notification/"},"codeunit:8711":{"name":"Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8711-telemetry/"},"codeunit:6109":{"name":"E-Document Import Helper","url":"https://jonas-paprotka.de/ref/codeunit/6109-e-document-import-helper/"}},"procs":[{"name":"RefreshSubTotalMismatch","line":34,"kind":"procedure","params":1,"steps":[[42,"call","GetRoundingPrecision",1],[43,"call","CalculateLinesSubTotal",3],[44,"call","ApplyMismatchState",4]]},{"name":"RefreshSubTotalMismatchAfterHeaderEdit","line":54,"kind":"procedure","params":1,"steps":[[58,"call","ReArmSubTotalMismatch",1],[59,"call","RefreshSubTotalMismatch",1]]},{"name":"RefreshSubTotalMismatchAfterLineEdit","line":69,"kind":"procedure","params":1,"steps":[[76,"call","GetHeaderForLine",2],[78,"call","ReArmSubTotalMismatch",1],[79,"call","GetRoundingPrecision",1],[80,"call","CalculateLinesSubTotalWithPendingLine",4],[81,"call","ApplyMismatchState",4]]},{"name":"RefreshSubTotalMismatchAfterLineDeletion","line":92,"kind":"procedure","params":1,"steps":[[99,"call","GetHeaderForLine",2],[101,"call","ReArmSubTotalMismatch",1],[102,"call","GetRoundingPrecision",1],[103,"call","CalculateLinesSubTotalExcludingLine",4],[104,"call","ApplyMismatchState",4]]},{"name":"AddVendorMatchedByNameNotAddress","line":113,"kind":"procedure","params":1,"steps":[[115,"call","AddNotification",4],[115,"call","VendorMatchedByNameNotAddressNotificationId",0]]},{"name":"AddSubTotalMismatch","line":123,"kind":"procedure","params":1,"steps":[[125,"call","AddNotification",4],[125,"call","SubTotalMismatchNotificationId",0]]},{"name":"AddNotification","line":128,"kind":"procedure","access":"local","params":4,"steps":[[134,"validate",6126,"E-Document Entry No."],[135,"validate",6126,"ID"],[136,"validate",6126,"User Id"],[137,"validate",6126,"Type"],[138,"validate",6126,"Message"],[139,"write",6126,"Insert",1]]},{"name":"RemoveSubTotalMismatch","line":146,"kind":"procedure","params":1,"steps":[[150,"call","SubTotalMismatchNotificationId",0],[151,"write",6126,"Delete",1]]},{"name":"ReArmSubTotalMismatch","line":158,"kind":"procedure","params":1,"steps":[[162,"call","SubTotalMismatchNotificationId",0],[165,"write",6126,"Delete",1]]},{"name":"MarkDismissed","line":173,"kind":"procedure","params":2,"steps":[[180,"write",6126,"Modify",1]]},{"name":"DeleteAllOfType","line":187,"kind":"procedure","params":1,"steps":[[193,"write",6126,"DeleteAll",1]]},{"name":"SubTotalMismatchExists","line":227,"kind":"procedure","params":1,"steps":[[231,"call","SubTotalMismatchNotificationId",0]]},{"name":"IsSubTotalMismatchDismissed","line":238,"kind":"procedure","params":1,"steps":[[242,"call","SubTotalMismatchNotificationId",0]]},{"name":"ApplyMismatchState","line":257,"kind":"procedure","access":"local","params":4,"steps":[[273,"call","DifferenceMagnitudeBucket",2],[276,"call","RemoveSubTotalMismatch",1],[281,"call","SubTotalMismatchExists",1],[283,"ext","codeunit",8711,"LogMessage",6],[285,"call","IsSubTotalMismatchDismissed",1],[287,"call","AddSubTotalMismatch",1],[289,"ext","codeunit",8711,"LogMessage",6]]},{"name":"GetRoundingPrecision","line":299,"kind":"procedure","access":"local","params":1,"steps":[[303,"ext","codeunit",6109,"GetCurrencyRoundingPrecision",1]]},{"name":"CalculateLinesSubTotal","line":306,"kind":"procedure","access":"local","params":3,"steps":[[311,"call","FindLines",2],[314,"call","LineSubTotal",2]]},{"name":"CalculateLinesSubTotalWithPendingLine","line":319,"kind":"procedure","access":"local","params":4,"steps":[[325,"call","FindLines",2],[329,"call","LineSubTotal",2],[331,"call","LineSubTotal",2],[336,"call","LineSubTotal",2]]},{"name":"CalculateLinesSubTotalExcludingLine","line":341,"kind":"procedure","access":"local","params":4,"steps":[[346,"call","FindLines",2],[350,"call","LineSubTotal",2]]}]}