{"title":"Codeunit 48 PostingSetupManagement, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/48-postingsetupmanagement/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":48,"name":"PostingSetupManagement","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/48-postingsetupmanagement/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/48-postingsetupmanagement/source/","path":"src/Layers/W1/BaseApp/Finance/ReceivablesPayables/PostingSetupManagement.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":{"codeunit:1330":{"name":"Instruction Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"},"table:252":{"name":"General Posting Setup","url":"https://jonas-paprotka.de/ref/table/252-general-posting-setup/"},"table:325":{"name":"VAT Posting Setup","url":"https://jonas-paprotka.de/ref/table/325-vat-posting-setup/"},"table:5813":{"name":"Inventory Posting Setup","url":"https://jonas-paprotka.de/ref/table/5813-inventory-posting-setup/"},"codeunit:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"codeunit:1431":{"name":"Forward Link Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1431-forward-link-mgt/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"}},"procs":[{"name":"CheckCustPostingGroupReceivablesAccount","line":52,"kind":"procedure","params":1,"steps":[[58,"event","OnBeforeCheckCustPostingGroupReceivablesAccount",1],[62,"call","IsPostingSetupNotificationEnabled",0],[69,"call","SendCustPostingGroupNotification",2]]},{"name":"CheckVendPostingGroupPayablesAccount","line":77,"kind":"procedure","params":1,"steps":[[83,"event","OnBeforeCheckVendPostingGroupPayablesAccount",1],[87,"call","IsPostingSetupNotificationEnabled",0],[94,"call","SendVendPostingGroupNotification",2]]},{"name":"CheckGenPostingSetupSalesAccount","line":103,"kind":"procedure","params":2,"steps":[[109,"event","OnBeforeCheckGenPostingSetupSalesAccount",1],[113,"call","IsPostingSetupNotificationEnabled",0],[117,"call","CreateGenPostingSetup",2],[121,"call","SendGenPostingSetupNotification",2]]},{"name":"CheckGenPostingSetupPurchAccount","line":130,"kind":"procedure","params":2,"steps":[[136,"event","OnBeforeCheckGenPostingSetupPurchAccount",1],[140,"call","IsPostingSetupNotificationEnabled",0],[144,"call","CreateGenPostingSetup",2],[148,"call","SendGenPostingSetupNotification",2]]},{"name":"CheckGenPostingSetupCOGSAccount","line":157,"kind":"procedure","params":2,"steps":[[163,"event","OnBeforeCheckGenPostingSetupCOGSAccount",1],[167,"call","IsPostingSetupNotificationEnabled",0],[171,"call","CreateGenPostingSetup",2],[175,"call","SendGenPostingSetupNotification",2]]},{"name":"CheckVATPostingSetupSalesAccount","line":184,"kind":"procedure","params":2,"steps":[[190,"event","OnBeforeCheckVATPostingSetupSalesAccount",1],[194,"call","IsPostingSetupNotificationEnabled",0],[198,"call","CreateVATPostingSetup",2],[204,"call","SendVATPostingSetupNotification",2]]},{"name":"CheckVATPostingSetupPurchAccount","line":213,"kind":"procedure","params":2,"steps":[[219,"event","OnBeforeCheckVATPostingSetupPurchAccount",1],[223,"call","IsPostingSetupNotificationEnabled",0],[227,"call","CreateVATPostingSetup",2],[233,"call","SendVATPostingSetupNotification",2]]},{"name":"CheckInvtPostingSetupInventoryAccount","line":242,"kind":"procedure","params":2,"steps":[[250,"event","OnBeforeCheckInvtPostingSetupInventoryAccount",1],[254,"call","IsPostingSetupNotificationEnabled",0],[258,"call","CreateInvtPostingSetup",2],[261,"call","SendInvtPostingSetupNotification",2]]},{"name":"ConfirmPostingAfterWorkingDate","line":281,"kind":"procedure","params":2,"steps":[[290,"event","OnBeforeConfirmPostingAfterWorkingDate",1],[297,"ext","codeunit",1330,"IsMyNotificationEnabled",1],[297,"ext","codeunit",1330,"GetPostingAfterWorkingDateNotificationId",0]]},{"name":"CreateGenPostingSetup","line":306,"kind":"procedure","access":"local","params":2,"steps":[[313,"validate",252,"Gen. Bus. Posting Group"],[314,"validate",252,"Gen. Prod. Posting Group"],[316,"write",252,"Insert"]]},{"name":"CreateVATPostingSetup","line":320,"kind":"procedure","access":"local","params":2,"steps":[[325,"validate",325,"VAT Bus. Posting Group"],[326,"validate",325,"VAT Prod. Posting Group"],[328,"write",325,"Insert"]]},{"name":"CreateInvtPostingSetup","line":331,"kind":"procedure","access":"local","params":2,"steps":[[336,"validate",5813,"Location Code"],[337,"validate",5813,"Invt. Posting Group Code"],[338,"write",5813,"Insert"]]},{"name":"IsPostingSetupNotificationEnabled","line":346,"kind":"procedure","params":0,"steps":[[350,"ext","codeunit",1330,"IsMyNotificationEnabled",1],[350,"call","GetPostingSetupNotificationID",0]]},{"name":"SendCustPostingGroupNotification","line":373,"kind":"procedure","params":2,"steps":[[375,"call","IsPostingSetupNotificationEnabled",0],[378,"call","SendPostingSetupNotification",5]]},{"name":"SendVendPostingGroupNotification","line":389,"kind":"procedure","params":2,"steps":[[391,"call","IsPostingSetupNotificationEnabled",0],[394,"call","SendPostingSetupNotification",5]]},{"name":"SendInvtPostingSetupNotification","line":405,"kind":"procedure","params":2,"steps":[[407,"call","IsPostingSetupNotificationEnabled",0],[410,"call","SendPostingSetupNotification",5]]},{"name":"SendGenPostingSetupNotification","line":422,"kind":"procedure","params":2,"steps":[[427,"event","OnBeforeSendGenPostingSetupNotification",1],[431,"call","IsPostingSetupNotificationEnabled",0],[434,"call","SendPostingSetupNotification",5]]},{"name":"LogVATPostingSetupFieldError","line":445,"kind":"procedure","params":2,"steps":[[451,"call","LogContextFieldError",2]]},{"name":"LogGenPostingSetupFieldError","line":459,"kind":"procedure","params":2,"steps":[[465,"call","LogContextFieldError",2]]},{"name":"LogInventoryPostingSetupFieldError","line":473,"kind":"procedure","params":2,"steps":[[479,"call","LogContextFieldError",2]]},{"name":"LogCustPostingGroupFieldError","line":487,"kind":"procedure","params":2,"steps":[[493,"call","LogContextFieldError",2]]},{"name":"LogVendPostingGroupFieldError","line":501,"kind":"procedure","params":2,"steps":[[507,"call","LogContextFieldError",2]]},{"name":"LogEmplPostingGroupFieldError","line":515,"kind":"procedure","params":2,"steps":[[521,"call","LogContextFieldError",2]]},{"name":"LogJobPostingGroupFieldError","line":529,"kind":"procedure","params":2,"steps":[[535,"call","LogContextFieldError",2]]},{"name":"LogFAPostingGroupFieldError","line":543,"kind":"procedure","params":2,"steps":[[549,"call","LogContextFieldError",2]]},{"name":"LogContextFieldError","line":552,"kind":"procedure","access":"local","params":2,"steps":[[558,"ext","codeunit",28,"LogContextFieldError",5],[559,"call","GetRecordIdDescription",1],[561,"ext","codeunit",1431,"GetHelpCodeForEmptyPostingSetupAccount",0]]},{"name":"SendVATPostingSetupNotification","line":576,"kind":"procedure","params":2,"steps":[[578,"call","IsPostingSetupNotificationEnabled",0],[581,"call","SendPostingSetupNotification",5]]},{"name":"OnInitializingNotificationWithDefaultState","line":694,"kind":"procedure","access":"local","params":0,"steps":[[696,"ext","table",1518,"InsertDefault",4],[697,"call","GetPostingSetupNotificationID",0]]}]}