From f5f3f2a6ace6bf101786d1f7be650772c17edfba Mon Sep 17 00:00:00 2001 From: Kassim Sheghembe Date: Wed, 20 Apr 2022 11:54:18 +0300 Subject: [PATCH] Added Week Offset for RecurringServices. --- .../org/smartregister/immunization/util/VaccinatorUtils.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opensrp-immunization/src/main/java/org/smartregister/immunization/util/VaccinatorUtils.java b/opensrp-immunization/src/main/java/org/smartregister/immunization/util/VaccinatorUtils.java index f8214fec..736a0b94 100644 --- a/opensrp-immunization/src/main/java/org/smartregister/immunization/util/VaccinatorUtils.java +++ b/opensrp-immunization/src/main/java/org/smartregister/immunization/util/VaccinatorUtils.java @@ -1137,6 +1137,8 @@ public static DateTime processConfigDateTimeOffset(DateTime afterOffset, String String fieldString = m2.group(2); if ("d".endsWith(fieldString)) { afterOffset = afterOffset.plusDays(curValue); + } else if ("w".endsWith(fieldString)) { + afterOffset = afterOffset.plusWeeks(curValue); } else if ("m".equals(fieldString)) { afterOffset = afterOffset.plusMonths(curValue); } else if ("y".equals(fieldString)) {