Codeunit 131303 Library - Pmt Disc Setup

Application Test Library

Source AL, 118 lines

src/Layers/W1/Tests/ApplicationTestLibrary/LibraryPmtDiscSetup.Codeunit.allines 4 to 19 of 118, Copyright (c) Microsoft Corporation. MIT

codeunit 131303 "Library - Pmt Disc Setup"{    trigger OnRun()    begin    end;    var        GeneralLedgerSetup: Record "General Ledger Setup";    procedure ClearAdjustPmtDiscInVATSetup()    var        VATPostingSetup: Record "VAT Posting Setup";    begin        VATPostingSetup.SetRange("Adjust for Payment Discount", true);        VATPostingSetup.ModifyAll("Adjust for Payment Discount", false, true);

All 118 lines

Public procedures 12 in 29

ClearAdjustPmtDiscInVATSetup()new in 28
GetPmtDiscGracePeriod(): Textnew in 28
GetPmtTolerancePct(): Decimalnew in 28
GetPaymentTermsDiscountPct(PaymentTermsCode: Code[10]): Decimalnew in 28
GetPaymentTermsDiscountDate(PaymentTermsCode: Code[10]): Datenew in 28
SetAdjustForPaymentDisc(AdjustForPaymentDisc: Boolean)new in 28

All 12 procedures