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;
}
Aggregations