Codeunit 3900 Retention Period Impl.

System Application, System.DataAdministration

Source AL, 113 lines

src/System Application/App/Retention Policy/src/Retention Period/RetentionPeriodImpl.Codeunit.allines 8 to 23 of 113, Copyright (c) Microsoft Corporation. MIT

codeunit 3900 "Retention Period Impl." implements "Retention Period"{    Access = Internal;    InherentEntitlements = X;    InherentPermissions = X;    var        FutureDateCalcErr: Label 'The date formula (%1) must result in a date that is at least two days before the current date. For example, to calculate a period for the past week, month, or year, use either -1W, -1M, or -1Y.', Comment = '%1 = a date formula';        MaxDateDateFormulaTxt: Label '<+CY+%1Y>', Locked = true;        WrongInterfaceImplementationErr: Label 'This implementation of the interface does not support the enum value selected. Contact your Microsoft partner for assistance. The following information can help them address the issue: Value: %1, Interface: Interface Retention Period, Implementation: codeunit 3900 Retention Period Impl.', Comment = '%1 = a value such as 1 Week, 1 Month, 3 Months, or Custom.';    local procedure RetentionPeriodDateFormula(RetentionPeriod: Enum "Retention Period Enum"; Translated: Boolean): Text;    var        RetentionPolicyLog: Codeunit "Retention Policy Log";        PeriodDateFormula: DateFormula;    begin

All 113 lines

Public procedures 6 in 29

RetentionPeriodDateFormula(RetentionPeriod: Record "Retention Period"): Text17-29changed in 18
RetentionPeriodDateFormula(RetentionPeriod: Record "Retention Period"; Translated: Boolean): Text17-29changed in 18
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"): Date17-29changed in 18
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"; UseDate: Date): Date17-29changed in 18
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"; UseDateTime: DateTime): DateTime17-29changed in 18
ValidateRetentionPeriodDateFormula(DateFormula: DateFormula)17-29

Changes 5 in 18

List17181920212223242526272829
Procedures5
RetentionPeriodDateFormula(RetentionPeriod: Record "Retention Period"): Text17-29changed in 18
changed, was RetentionPeriodDateFormula(RetentionPolicy: Record "Retention Period"): Text
RetentionPeriodDateFormula(RetentionPeriod: Record "Retention Period"; Translated: Boolean): Text17-29changed in 18
changed, was RetentionPeriodDateFormula(RetentionPolicy: Record "Retention Period"; Translated: Boolean): Text
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"): Date17-29changed in 18
changed, was CalculateExpirationDate(RetentionPolicy: Record "Retention Period"): Date
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"; UseDate: Date): Date17-29changed in 18
changed, was CalculateExpirationDate(RetentionPolicy: Record "Retention Period"; UseDate: Date): Date
CalculateExpirationDate(RetentionPeriod: Record "Retention Period"; UseDateTime: DateTime): DateTime17-29changed in 18
changed, was CalculateExpirationDate(RetentionPolicy: Record "Retention Period"; UseDateTime: DateTime): DateTime

All 5 changes in 17-29