Search in sources :

Example 11 with PdpFeedAccountingEntry

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

the class ConcurCashAdvancePdpFeedFileServiceImpl method buildPdpFeedAccountingEntry.

private PdpFeedAccountingEntry buildPdpFeedAccountingEntry(ConcurRequestExtractRequestDetailFileLine detailFileLine) {
    PdpFeedAccountingEntry pdpAccountingEntry = new PdpFeedAccountingEntry();
    pdpAccountingEntry.setCoaCd(detailFileLine.getChart());
    pdpAccountingEntry.setAccountNbr(detailFileLine.getAccountNumber());
    pdpAccountingEntry.setSubAccountNbr(detailFileLine.getSubAccountNumber());
    pdpAccountingEntry.setObjectCd(getConcurBatchUtilityService().getConcurParameterValue(ConcurParameterConstants.DEFAULT_TRAVEL_REQUEST_OBJECT_CODE));
    pdpAccountingEntry.setSubObjectCd(detailFileLine.getSubObjectCode());
    pdpAccountingEntry.setOrgRefId(detailFileLine.getOrgRefId());
    pdpAccountingEntry.setProjectCd(detailFileLine.getProjectCode());
    pdpAccountingEntry.setAmount(detailFileLine.getRequestAmount());
    return pdpAccountingEntry;
}
Also used : PdpFeedAccountingEntry(edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedAccountingEntry)

Aggregations

PdpFeedAccountingEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedAccountingEntry)11 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)5 PdpFeedDetailEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedDetailEntry)4 PdpFeedGroupEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedGroupEntry)2 ArrayList (java.util.ArrayList)2 PdpFeedTrailerEntry (edu.cornell.kfs.concur.batch.xmlObjects.PdpFeedTrailerEntry)1 ConcurAccountInfo (edu.cornell.kfs.concur.businessobjects.ConcurAccountInfo)1 EnumMap (java.util.EnumMap)1