Search in sources :

Example 1 with CustomerAccountPaymentData

use of org.mifos.accounts.util.helpers.CustomerAccountPaymentData in project head by mifos.

the class TestObjectFactory method getCustomerAccountPaymentDataView.

public static PaymentData getCustomerAccountPaymentDataView(final List<AccountActionDateEntity> accountActions, final Money totalAmount, final CustomerBO customer, final PersonnelBO personnel, final String receiptNum, final Short paymentId, final Date receiptDate, final Date transactionDate) {
    PaymentData paymentData = PaymentData.createPaymentData(totalAmount, personnel, paymentId, transactionDate);
    paymentData.setCustomer(customer);
    paymentData.setReceiptDate(receiptDate);
    paymentData.setReceiptNum(receiptNum);
    for (AccountActionDateEntity actionDate : accountActions) {
        CustomerAccountPaymentData customerAccountPaymentData = new CustomerAccountPaymentData(actionDate);
        paymentData.addAccountPaymentData(customerAccountPaymentData);
    }
    return paymentData;
}
Also used : PaymentData(org.mifos.accounts.util.helpers.PaymentData) CustomerAccountPaymentData(org.mifos.accounts.util.helpers.CustomerAccountPaymentData) AccountActionDateEntity(org.mifos.accounts.business.AccountActionDateEntity) CustomerAccountPaymentData(org.mifos.accounts.util.helpers.CustomerAccountPaymentData)

Aggregations

AccountActionDateEntity (org.mifos.accounts.business.AccountActionDateEntity)1 CustomerAccountPaymentData (org.mifos.accounts.util.helpers.CustomerAccountPaymentData)1 PaymentData (org.mifos.accounts.util.helpers.PaymentData)1