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