Why does the system show an error for the pay date when I try to close my payroll run?

This feature is available on all PaySpace editions.
There are two scenarios where an error with pay dates may occur when trying to close a payroll run.
Navigate > Payroll Cycle > Payslip Pay Dates
Scenario 1: The pay date cannot be before the period start date.
Example : Run is for August 2024 but the Pay Date is attached to July 2024.

Scenario 2: The previous payroll run cannot have a Pay Date that is after the most recent payroll run Pay Date.
Example : August 2024 has a Pay Date 27 August 2024. The error message appears when trying to amend the Pay Date for July 2024 to be 28 August 2024.
Current setup

Changes applied to the system