/** * @see * org.kuali.kfs.module.ar.document.service.CustomerInvoiceDocumentService#getOpenInvoiceDocumentsByCustomerNameByCustomerType(java.lang.String, * java.lang.String) */ @Override public Collection<CustomerInvoiceDocument> getOpenInvoiceDocumentsByCustomerNameByCustomerType( String customerName, String customerTypeCode) { Collection<CustomerInvoiceDocument> invoices = new ArrayList<CustomerInvoiceDocument>(); // trim and force-caps the customer name customerName = StringUtils.replace( customerName, KFSConstants.WILDCARD_CHARACTER, KFSConstants.PERCENTAGE_SIGN); customerName = customerName.trim(); if (customerName.indexOf("%") < 0) { customerName += "%"; } // trim and force-caps customerTypeCode = customerTypeCode.trim().toUpperCase(); invoices.addAll( customerInvoiceDocumentDao.getOpenByCustomerNameByCustomerType( customerName, customerTypeCode)); return invoices; }