Codeunit 8074 Document Change Management

Subscription Billing, Microsoft.SubscriptionBilling

Source AL, 1,252 lines

src/Apps/W1/Subscription Billing/App/Billing/Codeunits/DocumentChangeManagement.Codeunit.allines 9 to 24 of 1,252, Copyright (c) Microsoft Corporation. MIT

codeunit 8074 "Document Change Management"{    SingleInstance = true;    var        SkipContractSalesHeaderModifyCheck: Boolean;        SkipContractPurchaseHeaderModifyCheck: Boolean;        HeaderCannotBeChangedErr: Label 'You cannot make this change because the document is linked to a contract. If you still want to change the field, first delete this document and then make the change to the contract.';        HeaderDimCannotBeChangedErr: Label 'You cannot change the dimensions because the document %1 %2 is linked to a contract. If you still want to change the dimensions, first delete this document and then change the dimensions on the contract.', Comment = '%1 = Document Type, %2 = Document No.';        LineCannotBeChangedErr: Label 'You cannot make this change because the line is linked to contract %1. If you still want to change the field, first delete this document or document line and then make the change to the corresponding contract line.', Comment = '%1 = Contract No.';        LineDimCannotBeChangedErr: Label 'You cannot change the dimensions because the line %2 %3 %4 is linked to contract %1. If you still want to change the dimensions, first delete this document or document line and then change the dimensions on the corresponding contract line.', Comment = '%1 = Contract No., %2 = Document Type, %3 = Document No., %4 = Line No.';    [EventSubscriber(ObjectType::Table, Database::"Sales Header", OnBeforeValidateEvent, "Sell-to Customer No.", false, false)]    local procedure PreventSelltoCustomerNo(var Rec: Record "Sales Header"; CurrFieldNo: Integer)    begin        if Rec.IsTemporary() then

All 1,252 lines

Events 1 in 29

[IntegrationEvent] OnBeforePreventChangeOnDocumentHeaderOrLine(RecVariant: Variant; CurrFieldNo: Integer; var IsHandled: Boolean)new in 26

Public procedures 2 in 29

SetSkipContractSalesHeaderModifyCheck(NewSkipContractSalesHeaderModifyCheck: Boolean)new in 26
SetSkipContractPurchaseHeaderModifyCheck(NewSkipContractPurchaseHeaderModifyCheck: Boolean)new in 26

All 3 procedures in 26-29