EAMakeCreationDateAlwaysBefore
This document was generated using Claude.ai
Overview
Adjusts document creation dates to ensure they always occur before a specified hour by synchronizing with value date and subtracting random milliseconds.
When This Action Runs
Document date enforcement for DocumentFile entities requiring creation time constraints within business hour limitations.
How It Works
- Validates document value date and synchronizes creation date with it
- Compares creation hour with specified maximum hour
- Subtracts random milliseconds backward until time is before specified hour
- Protects start-of-day boundary to prevent invalid times
- Updates creation date maintaining consistency with value date
Parameters
Parameter 1: Hour (Required) - Maximum hour (0-23) before which creation time must occur (default: 12 if empty)
Database Tables Affected
- DocumentFile Creation Date - Updates creation date field with adjusted time aligned to value date
- Document Date Fields - Synchronizes related date fields for consistency
- Self-Contained Operation - Changes isolated to target document only
Module: core
Full Class Name: com.namasoft.infor.domainbase.util.actions.EAMakeCreationDateAlwaysBefore
Related Actions:
- EAMakeCreationDateAlwaysAfter - Ensures creation time is after specified hour