List of usage examples for org.joda.time LocalDate LocalDate
public LocalDate(Object instant)
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getExpectedDisbursedOnLocalDate() { LocalDate expectedDisbursementDate = null; if (this.expectedDisbursementDate != null) { expectedDisbursementDate = new LocalDate(this.expectedDisbursementDate); }//from w w w . j a v a 2s . c om return expectedDisbursementDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getDisbursementDate() { LocalDate disbursementDate = getExpectedDisbursedOnLocalDate(); if (this.actualDisbursementDate != null) { disbursementDate = new LocalDate(this.actualDisbursementDate); }// w ww . j a v a 2 s . c o m return disbursementDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getWrittenOffDate() { LocalDate writtenOffDate = null; if (this.writtenOffOnDate != null) { writtenOffDate = new LocalDate(this.writtenOffOnDate); }//w w w . j av a 2s. c o m return writtenOffDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getExpectedDisbursedOnLocalDateForTemplate() { LocalDate expectedDisbursementDate = null; if (this.expectedDisbursementDate != null) { expectedDisbursementDate = new LocalDate(this.expectedDisbursementDate); }//w w w. j a v a2s.co m Collection<LoanDisbursementDetails> details = fetchUndisbursedDetail(); if (!details.isEmpty()) { for (LoanDisbursementDetails disbursementDetails : details) { expectedDisbursementDate = new LocalDate(disbursementDetails.expectedDisbursementDate()); } } return expectedDisbursementDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getExpectedFirstRepaymentOnDate() { LocalDate firstRepaymentDate = null; if (this.expectedFirstRepaymentOnDate != null) { firstRepaymentDate = new LocalDate(this.expectedFirstRepaymentOnDate); }//from w ww . jav a 2s. c o m return firstRepaymentDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
private boolean isActualDisbursedOnDateEarlierOrLaterThanExpected(final LocalDate actualDisbursedOnDate) { boolean isRegenerationRequired = false; if (this.loanProduct.isMultiDisburseLoan()) { LoanDisbursementDetails details = fetchLastDisburseDetail(); if (details != null && !(details.expectedDisbursementDate().equals(details.actualDisbursementDate()))) { isRegenerationRequired = true; }// w w w. j ava 2 s . c o m } return !new LocalDate(this.expectedDisbursementDate).isEqual(actualDisbursedOnDate) || isRegenerationRequired; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getInterestChargedFromDate() { LocalDate interestChargedFrom = null; if (this.interestChargedFromDate != null) { interestChargedFrom = new LocalDate(this.interestChargedFromDate); }//from ww w . j ava 2s . c o m return interestChargedFrom; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getExpectedMaturityDate() { LocalDate expectedMaturityDate = null; if (this.expectedMaturityDate != null) { expectedMaturityDate = new LocalDate(this.expectedMaturityDate); }//from ww w.j a va 2 s . c o m return expectedMaturityDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
public LocalDate getMaturityDate() { LocalDate maturityDate = getExpectedMaturityDate(); if (this.actualMaturityDate != null) { maturityDate = new LocalDate(this.actualMaturityDate); }/* w ww . j a va 2 s . co m*/ return maturityDate; }
From source file:com.gst.portfolio.loanaccount.domain.Loan.java
License:Apache License
private void reverseTransactionsOnOrAfter(List<LoanTransaction> transactions, Date date) { LocalDate refDate = new LocalDate(date); for (LoanTransaction loanTransaction : transactions) { if (!loanTransaction.getTransactionDate().isBefore(refDate)) { loanTransaction.reverse();// w w w . j ava 2 s . c o m } } }