Search in sources :

Example 1 with PdpFeedPayeeIdEntry

use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry in project cu-kfs by CU-CommunityApps.

the class ConcurCashAdvancePdpFeedFileServiceImpl method buildPdpFeedPayeeIdEntry.

private PdpFeedPayeeIdEntry buildPdpFeedPayeeIdEntry(ConcurRequestExtractRequestDetailFileLine detailFileLine) {
    PdpFeedPayeeIdEntry payeeIdEntry = new PdpFeedPayeeIdEntry();
    payeeIdEntry.setContent(detailFileLine.getEmployeeId());
    if (getConcurBatchUtilityService().isValidTravelerStatusForProcessingAsPDPEmployeeType(detailFileLine.getPayeeIdType())) {
        payeeIdEntry.setIdType(ConcurConstants.EMPLOYEE_PAYEE_STATUS_TYPE_CODE);
    } else {
        LOG.error("buildPdpFeedPayeeIdEntry: Invalid PayeeIdType detected in buildPdpFeedPayeeIdEntry AFTER validation while building PDP output file:" + detailFileLine.getPayeeIdType());
    }
    return payeeIdEntry;
}
Also used : PdpFeedPayeeIdEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry)

Example 2 with PdpFeedPayeeIdEntry

use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry in project cu-kfs by CU-CommunityApps.

the class ConcurCreateCashAdvancePdpFeedFileServiceImpl method buildPdpFeedPayeeIdEntry.

private PdpFeedPayeeIdEntry buildPdpFeedPayeeIdEntry(ConcurStandardAccountingExtractDetailLine detailFileLine) {
    String defautPayeeIdType = getConcurBatchUtilityService().getConcurParameterValue(ConcurParameterConstants.DEFAULT_CONCUR_VALID_TRAVELER_STATUS_FOR_PDP_EMPLOYEE_CASH_ADVANCE_PROCESSING);
    PdpFeedPayeeIdEntry payeeIdEntry = new PdpFeedPayeeIdEntry();
    payeeIdEntry.setContent(detailFileLine.getEmployeeId());
    if (getConcurBatchUtilityService().isValidTravelerStatusForProcessingAsPDPEmployeeType(defautPayeeIdType)) {
        payeeIdEntry.setIdType(ConcurConstants.EMPLOYEE_PAYEE_STATUS_TYPE_CODE);
    } else {
        LOG.error("buildPdpFeedPayeeIdEntry: Invalid PayeeIdType detected from KFS System Parameter while building PDP output file:" + defautPayeeIdType);
    }
    return payeeIdEntry;
}
Also used : PdpFeedPayeeIdEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry)

Example 3 with PdpFeedPayeeIdEntry

use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountExtractPdpEntryServiceImpl method buildPayeeIdEntry.

@Override
public PdpFeedPayeeIdEntry buildPayeeIdEntry(ConcurStandardAccountingExtractDetailLine line) {
    PdpFeedPayeeIdEntry payeeIdEntry = new PdpFeedPayeeIdEntry();
    payeeIdEntry.setContent(line.getEmployeeId());
    if (getConcurBatchUtilityService().isValidTravelerStatusForProcessingAsPDPEmployeeType(line.getEmployeeStatus())) {
        payeeIdEntry.setIdType(ConcurConstants.EMPLOYEE_PAYEE_STATUS_TYPE_CODE);
    } else {
        LOG.error("buildPayeeIdEntry, Unable to to set the payee ID type based do the line's employee status " + line.getEmployeeStatus());
    }
    return payeeIdEntry;
}
Also used : PdpFeedPayeeIdEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry)

Example 4 with PdpFeedPayeeIdEntry

use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry in project cu-kfs by CU-CommunityApps.

the class ConcurStandardAccountExtractPdpEntryServiceImpl method copyGroupEntry.

private PdpFeedGroupEntry copyGroupEntry(PdpFeedGroupEntry groupEntry) {
    PdpFeedGroupEntry newGroup = new PdpFeedGroupEntry();
    newGroup.setPayeeName(groupEntry.getPayeeName());
    PdpFeedPayeeIdEntry newPayeeIdEntry = new PdpFeedPayeeIdEntry();
    newPayeeIdEntry.setContent(groupEntry.getPayeeId().getContent());
    newPayeeIdEntry.setIdType(groupEntry.getPayeeId().getIdType());
    newGroup.setPayeeId(newPayeeIdEntry);
    newGroup.setCustomerInstitutionIdentifier(groupEntry.getCustomerInstitutionIdentifier());
    newGroup.setPaymentDate(groupEntry.getPaymentDate());
    newGroup.setBankCode(groupEntry.getBankCode());
    return newGroup;
}
Also used : PdpFeedPayeeIdEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry) PdpFeedGroupEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)

Aggregations

PdpFeedPayeeIdEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry)4 PdpFeedGroupEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)1