{"title":"Codeunit 312 Cust-Check Cr. Limit, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/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":312,"name":"Cust-Check Cr. Limit","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/source/","path":"src/Layers/W1/BaseApp/Sales/Customer/CustCheckCrLimit.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":{"page:343":{"name":"Check Credit Limit","url":"https://jonas-paprotka.de/ref/page/343-check-credit-limit/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"codeunit:1330":{"name":"Instruction Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1330-instruction-mgt/"},"page:1870":{"name":"Credit Limit Notification","url":"https://jonas-paprotka.de/ref/page/1870-credit-limit-notification/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"}},"procs":[{"name":"GenJnlLineCheck","line":38,"kind":"procedure","params":1,"steps":[[45,"event","OnBeforeGenJnlLineCheck",1],[54,"event","OnNewCheckRemoveCustomerNotifications",0],[56,"ext","page",343,"GenJnlLineShowWarningAndGetCause",2],[57,"call","CreateAndSendNotification",3]]},{"name":"SalesHeaderCheck","line":65,"kind":"procedure","params":1,"steps":[[71,"event","OnBeforeSalesHeaderCheck",1],[76,"event","OnNewCheckRemoveCustomerNotifications",0],[78,"event","OnSalesHeaderCheckOnBeforeShowWarning",0],[79,"ext","page",343,"SalesHeaderShowWarningAndGetCause",2],[80,"ext","table",36,"CustomerCreditLimitNotExceeded",0],[84,"ext","codeunit",1330,"IsEnabled",1],[84,"call","GetInstructionType",2],[85,"call","CreateAndSendNotification",3],[87,"ext","table",36,"CustomerCreditLimitExceeded",1],[87,"ext","page",343,"GetNotificationId",0]]},{"name":"SalesLineCheck","line":97,"kind":"procedure","params":1,"steps":[[104,"event","OnBeforeSalesLineCheck",1],[112,"event","OnNewCheckRemoveCustomerNotifications",0],[114,"event","OnSalesLineCheckOnBeforeShowWarning",0],[115,"ext","page",343,"SalesLineShowWarningAndGetCause",2],[116,"ext","table",36,"CustomerCreditLimitNotExceeded",0],[121,"ext","codeunit",1330,"IsEnabled",1],[121,"call","GetInstructionType",2],[122,"call","CreateAndSendNotification",3],[124,"ext","table",36,"CustomerCreditLimitExceeded",1],[124,"ext","page",343,"GetNotificationId",0]]},{"name":"BlanketSalesOrderToOrderCheck","line":146,"kind":"procedure","params":1,"steps":[[152,"event","OnBeforeBlanketSalesOrderToOrderCheck",1],[159,"event","OnNewCheckRemoveCustomerNotifications",0],[161,"event","OnBlanketSalesOrderToOrderCheckOnBeforeSalesHeaderShowWarning",0],[162,"ext","page",343,"SalesHeaderShowWarningAndGetCause",2],[163,"call","CreateAndSendNotification",3]]},{"name":"ShowNotificationDetails","line":170,"kind":"procedure","params":1,"steps":[[174,"ext","page",1870,"SetHeading",1],[175,"ext","page",1870,"InitializeFromNotificationVar",1]]},{"name":"CreateAndSendNotification","line":179,"kind":"procedure","access":"local","params":3,"steps":[[185,"event","OnBeforeCreateAndSendNotification",1],[189,"call","GetBothNotificationsId",0],[190,"call","GetCreditLimitNotificationId",0],[190,"ext","page",343,"GetHeading",0],[191,"call","GetOverdueBalanceNotificationId",0],[191,"ext","page",343,"GetSecondHeading",0],[196,"ext","page",343,"GetHeading",0],[200,"call","GetCreditLimitNotificationId",0],[202,"call","GetOverdueBalanceNotificationId",0],[210,"ext","page",343,"PopulateDataOnNotification",1],[211,"ext","codeunit",1511,"SendNotificationWithAdditionalContext",3]]},{"name":"IsCreditLimitNotificationEnabled","line":246,"kind":"procedure","params":1,"steps":[[250,"ext","table",1518,"IsEnabledForRecord",2],[250,"call","GetCreditLimitNotificationId",0]]},{"name":"IsOverdueBalanceNotificationEnabled","line":258,"kind":"procedure","params":1,"steps":[[262,"ext","table",1518,"IsEnabledForRecord",2],[262,"call","GetOverdueBalanceNotificationId",0]]},{"name":"OnInitializingNotificationWithDefaultState","line":266,"kind":"procedure","access":"local","params":0,"steps":[[270,"ext","table",1518,"InsertDefaultWithTableNum",4],[270,"call","GetCreditLimitNotificationId",0],[274,"ext","table",1518,"InsertDefaultWithTableNum",4],[274,"call","GetOverdueBalanceNotificationId",0]]}]}