issue 205 for jlg change of disbursement date at time of disbursement
This commit is contained in:
+5
-1
@@ -3874,7 +3874,11 @@ public class Loan extends AbstractPersistableCustom<Long> {
|
||||
return disbursementDate;
|
||||
}
|
||||
|
||||
public LocalDate getWrittenOffDate() {
|
||||
public void setActualDisbursementDate(Date actualDisbursementDate) {
|
||||
this.actualDisbursementDate = actualDisbursementDate;
|
||||
}
|
||||
|
||||
public LocalDate getWrittenOffDate() {
|
||||
LocalDate writtenOffDate = null;
|
||||
if (this.writtenOffOnDate != null) {
|
||||
writtenOffDate = new LocalDate(this.writtenOffOnDate);
|
||||
|
||||
+3
@@ -257,6 +257,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
final Loan loan = this.loanAssembler.assembleFrom(loanId);
|
||||
|
||||
final LocalDate actualDisbursementDate = command.localDateValueOfParameterNamed("actualDisbursementDate");
|
||||
|
||||
// validate ActualDisbursement Date Against Expected Disbursement Date
|
||||
LoanProduct loanProduct = loan.loanProduct();
|
||||
if(loanProduct.syncExpectedWithDisbursementDate()){
|
||||
@@ -274,6 +275,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
checkForProductMixRestrictions(loan);
|
||||
|
||||
LocalDate recalculateFrom = null;
|
||||
loan.setActualDisbursementDate(actualDisbursementDate.toDate());
|
||||
ScheduleGeneratorDTO scheduleGeneratorDTO = this.loanUtilService.buildScheduleGeneratorDTO(loan, recalculateFrom);
|
||||
|
||||
// validate actual disbursement date against meeting date
|
||||
@@ -678,6 +680,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
|
||||
final ApplicationCurrency applicationCurrency = this.applicationCurrencyRepository.findOneWithNotFoundDetection(currency);
|
||||
|
||||
final LocalDate recalculateFrom = null;
|
||||
loan.setActualDisbursementDate(null);
|
||||
ScheduleGeneratorDTO scheduleGeneratorDTO = this.loanUtilService.buildScheduleGeneratorDTO(loan, recalculateFrom);
|
||||
|
||||
final Map<String, Object> changes = loan.undoDisbursal(scheduleGeneratorDTO, existingTransactionIds,
|
||||
|
||||
Reference in New Issue
Block a user