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