Table of Contents

Interface "Documents - Retention Period"

Namespace: Microsoft.Finance.GeneralLedger.Setup

Interface defining methods for managing document retention periods and deletion policies based on legal requirements. Provides framework for implementing country-specific document retention compliance rules.

Remarks

Implemented by retention period enums to enforce legal document retention requirements. Used in posted document deletion processes to ensure compliance with local regulations. Extensible framework supporting different retention policies for various jurisdictions.

Methods

GetDeletionBlockedAfterDate

Returns the date - Documents with a Posting Date after this date cannot be deleted.

procedure GetDeletionBlockedAfterDate(): Date

Returns

Type Description
Date

Law enforced date after which is not possible to delete posted documents.

GetDeletionBlockedBeforeDate

Returns the date - Documents with a Posting Date before this date cannot be deleted.

procedure GetDeletionBlockedBeforeDate(): Date

Returns

Type Description
Date

Law enforced date which prevents deletion of documents posted prior to that date.

IsDocumentDeletionAllowedByLaw

Returns whether document deletion is allowed by law condiering the Posting Date.

procedure IsDocumentDeletionAllowedByLaw(PostingDate: Date): Boolean

Parameters

Name Type Description
PostingDate Date

Posting Date of the document

Returns

Type Description
Boolean

True if Posting Date is out of date range defined by law.

CheckDocumentDeletionAllowedByLaw

Use it to run check on posted documents and block deletion if needed.

procedure CheckDocumentDeletionAllowedByLaw(PostingDate: Date)

Parameters

Name Type Description
PostingDate Date

Posting Date of the document

See also