R39667-1 SAF-T Declarations - Set Period And Release Range For Monthly Declaration
| Name | Value |
|---|---|
| Code | R39667-1 |
| Entity | Regulatory.Saft.SaftDeclarations |
| Name | SetPeriodAndReleaseRangeForMonthlyDeclaration |
| Attribute | PeriodStartDate, PeriodEndDate, ReleasedStartTime, ReleasedEndTime, CorrectionsStartDate |
| Layer | Front-End |
| Events | InitialLoad + ControlChanged (Year UI control, Month UI control) |
| Priority | Normal |
| Modify | YES |
| Condition | DeclarationType = Monthly |
| Applicable Legislations | ALL // no condition needed |
| Action | If DeclarationType = Monthly, set PeriodStartDate = first date of selected month/year; set PeriodEndDate = last date of selected month/year; set ReleasedStartTime = previous released declaration ReleasedEndTime + 00:00:01, and if there is no previous released monthly declaration then first date of selected month/year at 00:00:00; set ReleasedEndTime = current time; set CorrectionsStartDate = /saft/correction_start_date, and if /saft/correction_start_date has no value then 01.01.current year |
| Description | On initial load and whenever the Year or Month UI control value is changed, if the declaration type is Monthly, the system must automatically populate the declaration period fields, release interval fields, and correction start date. PeriodStartDate must be set to the first day of the selected month and year. PeriodEndDate must be set to the last day of the selected month and year. ReleasedStartTime must be set to the previous released SAF-T declaration ReleasedEndTime plus 1 second, and if no previous released declaration exists, it must be set to the first day of the selected month and year at 00:00:00. ReleasedEndTime must be set to the current time. CorrectionsStartDate must be set from /saft/correction_start_date, and if that setting has no value, it must be set to 01.01 of the current year. |
| Message | |
| Version | 2026.2 |
| Revocable | YES |