use of org.mifos.test.acceptance.framework.loan.ApplyChargePage in project head by mifos.
the class LoanTestHelper method applyChargeUsingFeeLabel.
/**
* Applies a charge to the loan account with id <tt>loanId</tt>. Uses the fee label
* rather than type value to select the fee.
* @param loanId The account id.
* @param params The charge parameters (amount and type).
* @return The loan account page for the loan account.
*/
public LoanAccountPage applyChargeUsingFeeLabel(String loanId, ChargeParameters params) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyChargePage applyChargePage = loanAccountPage.navigateToApplyCharge();
loanAccountPage = applyChargePage.submitUsingLabelAndNavigateToApplyChargeConfirmationPage(params);
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.ApplyChargePage in project head by mifos.
the class LoanTestHelper method applyCharge.
/**
* Applies a charge to the loan account with id <tt>loanId</tt>.
* @param loanId The account id.
* @param params The charge parameters (amount and type).
* @return The loan account page for the loan account.
*/
public LoanAccountPage applyCharge(String loanId, ChargeParameters params) {
LoanAccountPage loanAccountPage = navigationHelper.navigateToLoanAccountPage(loanId);
ApplyChargePage applyChargePage = loanAccountPage.navigateToApplyCharge();
loanAccountPage = applyChargePage.submitAndNavigateToApplyChargeConfirmationPage(params);
return loanAccountPage;
}
use of org.mifos.test.acceptance.framework.loan.ApplyChargePage 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