Skip to content

Commit 880faef

Browse files
dinesh-beehyvKantas2601
authored andcommitted
changes made for lmp and mobile update on same day
1 parent 1003bb3 commit 880faef

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

kilkari/src/main/java/org/motechproject/nms/kilkari/service/impl/SubscriberServiceImpl.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,6 @@ public Subscription updateRchMotherSubscriber(Long msisdn, MctsMother motherUpda
433433
motherUpdate.setLastMenstrualPeriod(lmp);
434434
motherUpdate.setUpdatedDateNic(lastUpdatedDateNic);
435435
motherUpdate.setRegistrationDate(motherRegistrationDate);
436-
437-
if(subscription != null){
438-
if ( !((subscriberByRchId.getLastMenstrualPeriod().getDayOfYear() == lmp.getDayOfYear()) && (subscriberByRchId.getLastMenstrualPeriod().getYear() == lmp.getYear()))) {
439-
subscriptionService.deleteCallRetry(subscription.getSubscriptionId());
440-
}else {
441-
subscriptionService.updateCallRetry(subscription.getSubscriptionId(), msisdn);
442-
}
443-
}
444436
return updateOrCreateSubscription(subscriberByRchId, subscription, lmp, pack, language, circle, SubscriptionOrigin.RCH_IMPORT, greaterCase);
445437
} else { // we have a subscriber by phone# and also one with the RCH id
446438
if (subscriptionService.activeSubscriptionByMsisdnRch(subscribersByMsisdn,msisdn, SubscriptionPackType.PREGNANCY, motherUpdate.getRchId(), null)) {

0 commit comments

Comments
 (0)