Merge pull request #865 from ashok-conflux/CONFLUX-39-JobChanges

Removed duplicate Job POST_INTEREST_FOR_SAVINGS
This commit is contained in:
Vishwas Babu A J
2014-04-17 13:19:38 -07:00
2 changed files with 0 additions and 15 deletions
@@ -27,8 +27,6 @@ public interface DepositAccountWritePlatformService {
CommandProcessingResult undoTransaction(Long savingsId, Long transactionId, boolean allowAccountTransferModification, final DepositAccountType depositAccountType);
void postInterestForAccounts();
CommandProcessingResult adjustDepositTransaction(Long savingsId, Long transactionId, JsonCommand command, final DepositAccountType depositAccountType);
CommandProcessingResult close(Long savingsId, JsonCommand command, final DepositAccountType depositAccountType);
@@ -34,8 +34,6 @@ import org.mifosplatform.infrastructure.core.data.DataValidatorBuilder;
import org.mifosplatform.infrastructure.core.exception.PlatformApiDataValidationException;
import org.mifosplatform.infrastructure.core.exception.PlatformServiceUnavailableException;
import org.mifosplatform.infrastructure.core.service.DateUtils;
import org.mifosplatform.infrastructure.jobs.annotation.CronTarget;
import org.mifosplatform.infrastructure.jobs.service.JobName;
import org.mifosplatform.infrastructure.security.service.PlatformSecurityContext;
import org.mifosplatform.organisation.holiday.service.HolidayWritePlatformService;
import org.mifosplatform.organisation.monetary.domain.ApplicationCurrency;
@@ -308,17 +306,6 @@ public class DepositAccountWritePlatformServiceJpaRepositoryImpl implements Depo
postJournalEntries(account, existingTransactionIds, existingReversedTransactionIds);
}
@CronTarget(jobName = JobName.POST_INTEREST_FOR_SAVINGS)
@Override
public void postInterestForAccounts() {
final List<SavingsAccount> savingsAccounts = this.savingAccountRepository.findSavingAccountByStatus(SavingsAccountStatusType.ACTIVE
.getValue());
for (final SavingsAccount savingsAccount : savingsAccounts) {
this.depositAccountAssembler.assignSavingAccountHelpers(savingsAccount);
postInterest(savingsAccount);
}
}
@Override
public CommandProcessingResult undoTransaction(final Long savingsId, final Long transactionId,
final boolean allowAccountTransferModification, final DepositAccountType depositAccountType) {