use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedTrailerEntry in project cu-kfs by CU-CommunityApps.
the class ConcurStandardAccountExtractPdpEntryServiceImpl method buildPdpFeedTrailerEntry.
@Override
public PdpFeedTrailerEntry buildPdpFeedTrailerEntry(PdpFeedFileBaseEntry pdpFeedFileBaseEntry, ConcurStandardAccountingExtractBatchReportData reportData) {
PdpFeedTrailerEntry trailerEntry = new PdpFeedTrailerEntry();
KualiDecimal pdpTotal = KualiDecimal.ZERO;
int numberOfDetails = 0;
for (PdpFeedGroupEntry group : pdpFeedFileBaseEntry.getGroup()) {
numberOfDetails += group.getDetail().size();
for (PdpFeedDetailEntry detailEntry : group.getDetail()) {
for (PdpFeedAccountingEntry accountingEntry : detailEntry.getAccounting()) {
pdpTotal = pdpTotal.add(accountingEntry.getAmount());
}
}
}
trailerEntry.setDetailCount(numberOfDetails);
trailerEntry.setDetailTotAmt(pdpTotal);
reportData.getPdpRecordsProcessed().setRecordCount(numberOfDetails);
reportData.getPdpRecordsProcessed().setDollarAmount(pdpTotal);
return trailerEntry;
}
use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedTrailerEntry in project cu-kfs by CU-CommunityApps.
the class ConcurCashAdvancePdpFeedFileServiceImpl method buildPdpFeedTrailerEntry.
private PdpFeedTrailerEntry buildPdpFeedTrailerEntry(int totalDetailRecordCount, KualiDecimal totalDetailRecordAmount) {
PdpFeedTrailerEntry trailer = new PdpFeedTrailerEntry();
trailer.setDetailCount(totalDetailRecordCount);
trailer.setDetailTotAmt(totalDetailRecordAmount);
return trailer;
}
use of edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedTrailerEntry in project cu-kfs by CU-CommunityApps.
the class ConcurCreateCashAdvancePdpFeedFileServiceImpl method buildPdpFeedTrailerEntry.
private PdpFeedTrailerEntry buildPdpFeedTrailerEntry(int totalDetailRecordCount, KualiDecimal totalDetailRecordAmount) {
PdpFeedTrailerEntry trailer = new PdpFeedTrailerEntry();
trailer.setDetailCount(totalDetailRecordCount);
trailer.setDetailTotAmt(totalDetailRecordAmount);
return trailer;
}
Aggregations