Merge pull request #865 from ashok-conflux/CONFLUX-39-JobChanges
Removed duplicate Job POST_INTEREST_FOR_SAVINGS
This commit is contained in:
-2
@@ -27,8 +27,6 @@ public interface DepositAccountWritePlatformService {
|
|||||||
|
|
||||||
CommandProcessingResult undoTransaction(Long savingsId, Long transactionId, boolean allowAccountTransferModification, final DepositAccountType depositAccountType);
|
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 adjustDepositTransaction(Long savingsId, Long transactionId, JsonCommand command, final DepositAccountType depositAccountType);
|
||||||
|
|
||||||
CommandProcessingResult close(Long savingsId, JsonCommand command, final DepositAccountType depositAccountType);
|
CommandProcessingResult close(Long savingsId, JsonCommand command, final DepositAccountType depositAccountType);
|
||||||
|
|||||||
-13
@@ -34,8 +34,6 @@ import org.mifosplatform.infrastructure.core.data.DataValidatorBuilder;
|
|||||||
import org.mifosplatform.infrastructure.core.exception.PlatformApiDataValidationException;
|
import org.mifosplatform.infrastructure.core.exception.PlatformApiDataValidationException;
|
||||||
import org.mifosplatform.infrastructure.core.exception.PlatformServiceUnavailableException;
|
import org.mifosplatform.infrastructure.core.exception.PlatformServiceUnavailableException;
|
||||||
import org.mifosplatform.infrastructure.core.service.DateUtils;
|
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.infrastructure.security.service.PlatformSecurityContext;
|
||||||
import org.mifosplatform.organisation.holiday.service.HolidayWritePlatformService;
|
import org.mifosplatform.organisation.holiday.service.HolidayWritePlatformService;
|
||||||
import org.mifosplatform.organisation.monetary.domain.ApplicationCurrency;
|
import org.mifosplatform.organisation.monetary.domain.ApplicationCurrency;
|
||||||
@@ -308,17 +306,6 @@ public class DepositAccountWritePlatformServiceJpaRepositoryImpl implements Depo
|
|||||||
postJournalEntries(account, existingTransactionIds, existingReversedTransactionIds);
|
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
|
@Override
|
||||||
public CommandProcessingResult undoTransaction(final Long savingsId, final Long transactionId,
|
public CommandProcessingResult undoTransaction(final Long savingsId, final Long transactionId,
|
||||||
final boolean allowAccountTransferModification, final DepositAccountType depositAccountType) {
|
final boolean allowAccountTransferModification, final DepositAccountType depositAccountType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user