FINERACT-820: Add a new condition so the Java Calendar Sunday value matches witch Fineract
This commit is contained in:
committed by
Michael Vorburger ⛑️
parent
1848056e6f
commit
5c19ed9385
+5
-1
@@ -175,7 +175,11 @@ public class LoanReschedulingWithinCenterTest {
|
|||||||
final String startDate = dateFormat.format(today.getTime());
|
final String startDate = dateFormat.format(today.getTime());
|
||||||
final String frequency = "2"; // 2:Weekly
|
final String frequency = "2"; // 2:Weekly
|
||||||
final String interval = "2"; // Every one week
|
final String interval = "2"; // Every one week
|
||||||
final Integer repeatsOnDay = today.get(Calendar.DAY_OF_WEEK) - 1;
|
Integer repeatsOnDay = today.get(Calendar.DAY_OF_WEEK) - 1;
|
||||||
|
|
||||||
|
if (repeatsOnDay.intValue() == 0){
|
||||||
|
repeatsOnDay = 7;
|
||||||
|
}
|
||||||
|
|
||||||
Integer calendarId = CalendarHelper.createMeetingForGroup(this.requestSpec, this.responseSpec, centerId, startDate, frequency,
|
Integer calendarId = CalendarHelper.createMeetingForGroup(this.requestSpec, this.responseSpec, centerId, startDate, frequency,
|
||||||
interval, repeatsOnDay.toString());
|
interval, repeatsOnDay.toString());
|
||||||
|
|||||||
Reference in New Issue
Block a user