---
title: "Codeunit 312 Cust-Check Cr. Limit"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/
type: codeunit
id: 312
name: "Cust-Check Cr. Limit"
app: "Base Application"
namespace: Microsoft.Sales.Customer
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 312 Cust-Check Cr. Limit

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/312-cust-check-cr-limit/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Sales.Customer |
| Versions | 17-28 |
| Source file | Sales/Customer/CustCheckCrLimit.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GenJnlLineCheck | (Record Gen. Journal Line) | - | public | 17-28 | - | - |
| SalesHeaderCheck | (var Record Sales Header) | Boolean | public | 17-28 | - | - |
| SalesLineCheck | (Record Sales Line) | Boolean | public | 17-28 | - | - |
| ServiceHeaderCheck | (Record Service Header) | - | public | 17-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |
| ServiceLineCheck | (Record Service Line) | - | public | 17-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |
| ServiceContractHeaderCheck | (Record Service Contract Header) | - | public | 17-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |
| GetInstructionType | (Code[30], Code[20]) | Code[50] | public | 17-28 | - | - |
| BlanketSalesOrderToOrderCheck | (Record Sales Header) | - | public | 17-28 | - | - |
| ShowNotificationDetails | (Notification) | - | public | 17-28 | - | - |
| GetCreditLimitNotificationId | () | Guid | public | 17-28 | - | - |
| GetOverdueBalanceNotificationId | () | Guid | public | 17-28 | - | - |
| GetBothNotificationsId | () | Guid | public | 17-28 | - | - |
| IsCreditLimitNotificationEnabled | (Record Customer) | Boolean | public | 17-28 | - | - |
| IsOverdueBalanceNotificationEnabled | (Record Customer) | Boolean | public | 17-28 | - | - |
| GetCreditLimitNotificationMsg | () | Text | public | 17-28 | - | - |
| GetOverdueBalanceNotificationMsg | () | Text | public | 17-28 | - | - |
| RunOnBeforeServiceHeaderCheck | (var Record Service Header, var Boolean) | - | internal | 25-27 | - | - |
| RunOnBeforeServiceLineCheck | (var Record Service Line, var Boolean) | - | internal | 25-27 | - | - |
| RunOnBeforeServiceContractHeaderCheck | (Record Service Contract Header, var Boolean) | - | internal | 25-27 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnNewCheckRemoveCustomerNotifications | (RecordId, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSalesHeaderCheck | (var Record Sales Header, var Boolean) | 17-19 | - | - |
| Integration event | OnBeforeSalesLineCheck | (var Record Sales Line, var Boolean) | 17-22 | - | - |
| Integration event | OnBeforeCreateAndSendNotification | (RecordId, Guid, Text[250], Notification, var Boolean, var Page Check Credit Limit) | 19-28 | - | - |
| Integration event | OnBeforeGenJnlLineCheck | (Record Gen. Journal Line, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeSalesHeaderCheck | (var Record Sales Header, var Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeServiceHeaderCheck | (var Record Service Header, var Boolean) | 21-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |
| Integration event | OnSalesHeaderCheckOnBeforeShowWarning | (var Page Check Credit Limit) | 22-28 | - | - |
| Integration event | OnSalesLineCheckOnBeforeShowWarning | (var Page Check Credit Limit) | 22-28 | - | - |
| Integration event | OnServiceHeaderCheckOnBeforeShowWarning | (var Page Check Credit Limit) | 22-28 | Pending 27.0 | Moved to codeunit Serv. Check Credit Limit |
| Integration event | OnServiceLineCheckOnBeforeShowWarning | (var Page Check Credit Limit) | 22-28 | Pending 27.0 | Moved to codeunit Serv. Check Credit Limit |
| Integration event | OnServiceContractHeaderCheckOnBeforeShowWarning | (var Page Check Credit Limit) | 22-28 | Pending 27.0 | Moved to codeunit Serv. Check Credit Limit |
| Integration event | OnBlanketSalesOrderToOrderCheckOnBeforeSalesHeaderShowWarning | (var Page Check Credit Limit) | 22-28 | - | - |
| Integration event | OnBeforeSalesLineCheck | (var Record Sales Line, var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeBlanketSalesOrderToOrderCheck | (var Record Sales Header, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeServiceContractHeaderCheck | (Record Service Contract Header, var Boolean) | 23-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |
| Integration event | OnBeforeServiceLineCheck | (var Record Service Line, var Boolean) | 25-27 | Pending 25.0 | Moved to codeunit Serv. Check Credit Limit |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
