Package org.joda.time

Examples of org.joda.time.LocalDate.minusDays()


        Integer frequencyNunber = 1;
        if (feeFrequency == null) {
            scheduleDates.put(frequencyNunber++, startDate.minusDays(diff.intValue()));
        } else {
            while (new LocalDate().isAfter(startDate)) {
                scheduleDates.put(frequencyNunber++, startDate.minusDays(diff.intValue()));
                LocalDate scheduleDate = scheduledDateGenerator.getRepaymentPeriodDate(PeriodFrequencyType.fromInt(feeFrequency),
                        chargeDefinition.feeInterval(), startDate);

                startDate = scheduleDate;
            }
View Full Code Here


                dueRepaymentPeriodDate = startDate.plusYears(repaidEvery);
            break;
            case INVALID:
            break;
        }
        return dueRepaymentPeriodDate.minusDays(1);// get 2n-1 range date from
                                                   // startDate
    }

    public void applyHolidayToRepaymentScheduleDates(final Holiday holiday) {
        // first repayment's from date is same as disbursement date.
View Full Code Here

                nextDueLocalDate = setDayOfMonth(nextDueLocalDate);
            } else if (isMonthlyFee()) {
                nextDueLocalDate = nextDueLocalDate.minusMonths(this.feeInterval);
                nextDueLocalDate = setDayOfMonth(nextDueLocalDate);
            } else if (isWeeklyFee()) {
                nextDueLocalDate = nextDueLocalDate.minusDays(7 * this.feeInterval);
                nextDueLocalDate = setDayOfWeek(nextDueLocalDate);
            }

            this.dueDate = nextDueLocalDate.toDate();
        }
View Full Code Here

            for (LoanTransaction loanTransaction : transactions) {
                LocalDate loantransactionDate = loanTransaction.getTransactionDate();
                if (!loantransactionDate.isAfter(transactionsDate)) {
                    transactionsForInstallment.add(loanTransaction);
                    recalculationDates.put(loantransactionDate,
                            getNextRestScheduleDate(loantransactionDate.minusDays(1), loanApplicationTerms, holidayDetailDTO));
                }
            }

            /*
             * if (installment.isRecalculatedInterestComponent() &&
View Full Code Here

        for (LoanTransaction transaction : loanTransactions) {
            LocalDate loantransactionDate = transaction.getTransactionDate();
            if (loantransactionDate.isAfter(from) && !transaction.getTransactionDate().isAfter(to)) {
                transactions.add(transaction);
                recalculationDates.put(loantransactionDate,
                        getNextRestScheduleDate(loantransactionDate.minusDays(1), loanApplicationTerms, holidayDetailDTO));
            }
        }

        loanRepaymentScheduleTransactionProcessor.handleRepaymentSchedule(transactions, currency, installments, installment,
                recalculationDates, preCloseTransaction);
View Full Code Here

  public LocalDate minus(LocalDate date, int days) {
    LocalDate res = sameOrPrevious(date);

    for (int i = 0; i < days; i++) {
      res = res.minusDays(1);
      res = sameOrPrevious(res);
    }

    return res;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.