Search in sources :

Example 6 with PaymentWorksBatchReportRawDataItem

use of edu.cornell.kfs.pmw.batch.report.PaymentWorksBatchReportRawDataItem in project cu-kfs by CU-CommunityApps.

the class PaymentWorksDtoToPaymentWorksVendorConversionServiceImpl method extractCustomFields.

private void extractCustomFields(PaymentWorksVendor stgNewVendor, PaymentWorksNewVendorRequestDetailDTO pmwNewVendorDetailDTO, PaymentWorksNewVendorRequestsBatchReportData reportData) {
    List<String> customFieldErrors = new ArrayList<String>();
    processEachPaymentWorksCustomFieldReceived(stgNewVendor, pmwNewVendorDetailDTO, customFieldErrors);
    if (errorsGeneratedForValueConversionOfPaymentWorksCustomFieldToPaymentWorksVendorAttribute(stgNewVendor)) {
        reportData.getPendingPaymentWorksVendorsThatCouldNotBeProcessed().incrementRecordCount();
        reportData.addPmwVendorsThatCouldNotBeProcessed(new PaymentWorksBatchReportRawDataItem(stgNewVendor.toString(), customFieldErrors));
    }
}
Also used : ArrayList(java.util.ArrayList) PaymentWorksBatchReportRawDataItem(edu.cornell.kfs.pmw.batch.report.PaymentWorksBatchReportRawDataItem)

Aggregations

PaymentWorksBatchReportRawDataItem (edu.cornell.kfs.pmw.batch.report.PaymentWorksBatchReportRawDataItem)6 ArrayList (java.util.ArrayList)3 KfsVendorDataWrapper (edu.cornell.kfs.pmw.batch.businessobject.KfsVendorDataWrapper)1 PaymentWorksVendor (edu.cornell.kfs.pmw.batch.businessobject.PaymentWorksVendor)1 List (java.util.List)1 MaintenanceDocument (org.kuali.kfs.kns.document.MaintenanceDocument)1 WorkflowException (org.kuali.rice.kew.api.exception.WorkflowException)1 AutoPopulatingList (org.springframework.util.AutoPopulatingList)1