Search in sources :

Example 1 with CashFlowBoundary

use of org.mifos.platform.cashflow.service.CashFlowBoundary in project head by mifos.

the class CashFlowController method retrieveCashFlowForm.

public CashFlowForm retrieveCashFlowForm(CashFlowDto cashFlowSettings) {
    CashFlowBoundary cashFlowBoundary = cashFlowService.getCashFlowBoundary(cashFlowSettings.getFirstInstallmentDueDate(), cashFlowSettings.getLastInstallmentDueDate());
    CashFlowDetail cashFlowDetail = cashFlowService.cashFlowFor(cashFlowBoundary.getStartYear(), cashFlowBoundary.getStartMonth(), cashFlowBoundary.getNumberOfMonths());
    return new CashFlowForm(cashFlowDetail, cashFlowSettings.isCaptureCapitalLiabilityInfo(), cashFlowSettings.getLoanAmount(), cashFlowSettings.getIndebtednessRatio());
}
Also used : CashFlowBoundary(org.mifos.platform.cashflow.service.CashFlowBoundary) CashFlowDetail(org.mifos.platform.cashflow.service.CashFlowDetail) CashFlowForm(org.mifos.platform.cashflow.ui.model.CashFlowForm) MonthlyCashFlowForm(org.mifos.platform.cashflow.ui.model.MonthlyCashFlowForm)

Aggregations

CashFlowBoundary (org.mifos.platform.cashflow.service.CashFlowBoundary)1 CashFlowDetail (org.mifos.platform.cashflow.service.CashFlowDetail)1 CashFlowForm (org.mifos.platform.cashflow.ui.model.CashFlowForm)1 MonthlyCashFlowForm (org.mifos.platform.cashflow.ui.model.MonthlyCashFlowForm)1