on 2023 Sep 29 12:11 PM
I need a business rule where the following will apply
Changes between the 1st of the month to the 15th of the month should have an effective date of the current month.
Changes on the 15th to the end of the month should have an effective date of the 1st day of the next month.
e.g. Home Address changed on the 12th of August
System effective date should be 01/08/2023 as it is before the 15th of the Month
e.g Home Address changed on the 20th August
System effective date should be 01/09/2023 as it is after the 15th of the Month
Request clarification before answering.
The conditional clauses should be something like:
IF effective date <= hire date
THEN
hire date
ELSE
IF Day of month of effective date <= 15
THEN
Set Create date: Day = 1, Month = Month of Date (effective date) and Year = Year of Date (effective date)
ELSE
IF Day of month of effective date > 15 and Month of Date (effective date) = 12
THEN
Set Create date: Day = 1, Month = 1 and Year = Year of Date (effective date) + 1
IF Day of month of effective date > 15
THENSet Create date: Day = 1, Month = Month of Date (effective date) +1 and Year = Year of Date (effective date)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
8 | |
6 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.