Codeunit 71 Purch.-Disc. (Yes/No)

Base Application, Microsoft.Purchases.Document

src/Layers/W1/BaseApp/Purchases/Document/PurchDiscYesNo.Codeunit.al38 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.Purchases.Document;using System.Utilities;codeunit 71 "Purch.-Disc. (Yes/No)"{    TableNo = "Purchase Line";    trigger OnRun()    var        ConfirmManagement: Codeunit "Confirm Management";        IsHandled: Boolean;    begin        IsHandled := false;        OnBeforeOnRun(Rec, IsHandled);        if IsHandled then            exit;        if ConfirmManagement.GetResponseOrDefault(Text000, true) then            CODEUNIT.Run(CODEUNIT::"Purch.-Calc.Discount", Rec);    end;    var#pragma warning disable AA0074        Text000: Label 'Do you want to calculate the invoice discount?';#pragma warning restore AA0074    [IntegrationEvent(false, false)]    local procedure OnBeforeOnRun(var PurchaseLine: Record "Purchase Line"; var IsHandled: Boolean)    begin    end;}