Search in sources :

Example 11 with ConcurBatchReportLineValidationErrorItem

use of edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountingExtractValidationServiceImpl method validateReportId.

private boolean validateReportId(ConcurStandardAccountingExtractDetailLine line, ConcurStandardAccountingExtractBatchReportData reportData) {
    boolean valid = StringUtils.isNotBlank(line.getReportId());
    if (valid) {
        LOG.debug("validateReportId, found a valid report ID: " + line.getReportId());
    } else {
        String validationError = "No valid report ID.";
        reportData.addValidationErrorFileLine(new ConcurBatchReportLineValidationErrorItem(line, validationError));
        LOG.error("validateReportId, " + validationError);
    }
    return valid;
}
Also used : ConcurBatchReportLineValidationErrorItem(edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem)

Example 12 with ConcurBatchReportLineValidationErrorItem

use of edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem in project cu-kfs by CU-CommunityApps.

the class ConcurReportEmailServiceImplTest method addLineErrorToReportData.

private void addLineErrorToReportData() {
    ConcurBatchReportLineValidationErrorItem item = new ConcurBatchReportLineValidationErrorItem();
    reportData.getValidationErrorFileLines().add(item);
}
Also used : ConcurBatchReportLineValidationErrorItem(edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem)

Aggregations

ConcurBatchReportLineValidationErrorItem (edu.cornell.kfs.concur.batch.report.ConcurBatchReportLineValidationErrorItem)12 ValidationResult (edu.cornell.kfs.concur.businessobjects.ValidationResult)2 ConcurStandardAccountingExtractDetailLine (edu.cornell.kfs.concur.batch.businessobject.ConcurStandardAccountingExtractDetailLine)1 ConcurAccountInfo (edu.cornell.kfs.concur.businessobjects.ConcurAccountInfo)1 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)1