Search in sources :

Example 6 with PdpFeedGroupEntry

use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry 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)

Example 7 with PdpFeedGroupEntry

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

the class ConcurStandardAccountExtractPdpEntryServiceImpl method buildPdpFeedGroupEntry.

@Override
public PdpFeedGroupEntry buildPdpFeedGroupEntry(ConcurStandardAccountingExtractDetailLine line) {
    PdpFeedGroupEntry currentGroup = new PdpFeedGroupEntry();
    currentGroup.setPayeeName(buildPayeeName(line.getEmployeeLastName(), line.getEmployeeFirstName(), line.getEmployeeMiddleInitial()));
    currentGroup.setPayeeId(buildPayeeIdEntry(line));
    currentGroup.setPaymentDate(formatDate(line.getBatchDate()));
    currentGroup.setCombineGroupInd(ConcurConstants.COMBINED_GROUP_INDICATOR);
    currentGroup.setBankCode(ConcurConstants.BANK_CODE);
    currentGroup.setCustomerInstitutionIdentifier(StringUtils.EMPTY);
    return currentGroup;
}
Also used : PdpFeedGroupEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)

Example 8 with PdpFeedGroupEntry

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

the class ConcurStandardAccountingExtractServiceImpl method getGroupEntryForLine.

private PdpFeedGroupEntry getGroupEntryForLine(PdpFeedFileBaseEntry pdpFeedFileBaseEntry, ConcurStandardAccountingExtractDetailLine line) {
    for (PdpFeedGroupEntry groupEntry : pdpFeedFileBaseEntry.getGroup()) {
        if (StringUtils.equalsIgnoreCase(line.getEmployeeId(), groupEntry.getPayeeId().getContent())) {
            return groupEntry;
        }
    }
    PdpFeedGroupEntry group = getConcurStandardAccountExtractPdpEntryService().buildPdpFeedGroupEntry(line);
    pdpFeedFileBaseEntry.getGroup().add(group);
    return group;
}
Also used : PdpFeedGroupEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)

Aggregations

PdpFeedGroupEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)8 PdpFeedDetailEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedDetailEntry)3 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)3 PdpFeedAccountingEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedAccountingEntry)2 ConcurRequestExtractRequestDetailFileLine (edu.cornell.kfs.concur.batch.businessobject.ConcurRequestExtractRequestDetailFileLine)1 PdpFeedFileBaseEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedFileBaseEntry)1 PdpFeedPayeeIdEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedPayeeIdEntry)1 PdpFeedTrailerEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedTrailerEntry)1 ArrayList (java.util.ArrayList)1