Codeunit 6489 Serv. Check Credit Limit

Base Application, Microsoft.Sales.Customer

Source AL, 253 lines

src/Layers/W1/BaseApp/Service/Sales/Customer/ServCheckCreditLimit.Codeunit.allines 11 to 26 of 253, Copyright (c) Microsoft Corporation. MIT

codeunit 6489 "Serv. Check Credit Limit"{    Permissions = TableData "My Notifications" = rimd;    trigger OnRun()    begin    end;    var        NotificationLifecycleMgt: Codeunit "Notification Lifecycle Mgt.";        ServCheckCreditLimit: Page "Serv. Check Credit Limit";        InstructionTypeTxt: Label 'Check Cr. Limit';        GetDetailsTxt: Label 'Show details';        CreditLimitNotificationMsg: Label 'The customer''s credit limit has been exceeded.';        CreditLimitNotificationDescriptionTxt: Label 'Show warning when a sales document will exceed the customer''s credit limit.';        OverdueBalanceNotificationMsg: Label 'This customer has an overdue balance.';

All 253 lines

Events 8 in 29

[IntegrationEvent] OnNewCheckRemoveCustomerNotifications(RecId: RecordId; RecallCreditOverdueNotif: Boolean)new in 25
[IntegrationEvent] OnBeforeServiceHeaderCheck(var ServiceHeader: Record "Service Header"; var IsHandled: Boolean)new in 25
[IntegrationEvent] OnBeforeServiceLineCheck(var ServiceLine: Record "Service Line"; var IsHandled: Boolean)new in 25
[IntegrationEvent] OnBeforeCreateAndSendNotification(RecordId: RecordId; AdditionalContextId: Guid; Heading: Text[250]; NotificationToSend: Notification; var IsHandled: Boolean; var ServCheckCreditLimit: Page "Serv. Check Credit Limit")new in 25
[IntegrationEvent] OnServiceHeaderCheckOnBeforeShowWarning(var ServCheckCreditLimit: Page "Serv. Check Credit Limit")new in 25
[IntegrationEvent] OnServiceLineCheckOnBeforeShowWarning(var ServCheckCreditLimit: Page "Serv. Check Credit Limit")new in 25
[IntegrationEvent] OnServiceContractHeaderCheckOnBeforeShowWarning(var ServCheckCreditLimit: Page "Serv. Check Credit Limit")new in 25

All 8 events

Public procedures 12 in 29

ServiceHeaderCheck(ServiceHeader: Record "Service Header")new in 25
ServiceLineCheck(ServiceLine: Record "Service Line")new in 25
ServiceContractHeaderCheck(ServiceContractHeader: Record "Service Contract Header")new in 25
GetInstructionType(DocumentType: Code[30]; DocumentNumber: Code[20]): Code[50]new in 25
ShowNotificationDetails(CreditLimitNotification: Notification)new in 25
GetCreditLimitNotificationId(): Guidnew in 25

All 12 procedures