This commit is contained in:
rossmill76 committed 2026-04-02 19:28:18 +01:00
1 parent 4281924ee5
commit fc702adfcd
13 files changed
+69 -22

No files matched your search

@@ -129,9 +129,10 @@ public class SalaryRepository(ApplicationDbContext db) : ISalaryRepository
private static DateTime GetNextDate(DateTime from, Salary salary) => salary.RecurrenceType switch
{
RecurrenceType.Weekly => from.AddDays(7),
RecurrenceType.Monthly => from.AddMonths(1),
RecurrenceType.Yearly => from.AddYears(1),
_ => from.AddMonths(1)
RecurrenceType.Weekly => from.AddDays(7),
RecurrenceType.FourWeekly => from.AddDays(28),
RecurrenceType.Monthly => from.AddMonths(1),
RecurrenceType.Yearly => from.AddYears(1),
_ => from.AddMonths(1)
};
}