Search in sources :

Example 1 with ApplyChargePage

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;
}
Also used : ApplyChargePage(org.mifos.test.acceptance.framework.loan.ApplyChargePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) EditPreviewLoanAccountPage(org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)

Example 2 with ApplyChargePage

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;
}
Also used : ApplyChargePage(org.mifos.test.acceptance.framework.loan.ApplyChargePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) EditPreviewLoanAccountPage(org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)

Example 3 with ApplyChargePage

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;
}
Also used : ApplyChargePage(org.mifos.test.acceptance.framework.loan.ApplyChargePage) LoanAccountPage(org.mifos.test.acceptance.framework.loan.LoanAccountPage) EditPreviewLoanAccountPage(org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage) DivideGroupChargesPage(org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage)

Aggregations

ApplyChargePage (org.mifos.test.acceptance.framework.loan.ApplyChargePage)3 EditPreviewLoanAccountPage (org.mifos.test.acceptance.framework.loan.EditPreviewLoanAccountPage)3 LoanAccountPage (org.mifos.test.acceptance.framework.loan.LoanAccountPage)3 DivideGroupChargesPage (org.mifos.test.acceptance.framework.loan.DivideGroupChargesPage)1