use of org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage in project head by mifos.
the class LoanTestHelper method applyChargeToGroupLoan.
/**
* Applies a charge to the group loan account with id <tt>loanId</tt>.
* @param loanId The account id.
* @param params The charge parameters (amount, type and list of amounts for member accounts).
* @return The loan account page for the group loan account.
*/
public LoanAccountPage applyChargeToGroupLoan(String loanId, ChargeParameters params) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyChargePage applyChargePage = loanAccountPage.navigateToApplyCharge();
DivideGroupChargesPage divideGroupChargesPage = applyChargePage.submitAndNavigateToDivideGroupChargesPage(params);
loanAccountPage = divideGroupChargesPage.submitAndNavigateToLoanAccountPage(params);
return loanAccountPage;
}
Aggregations