Search in sources :

Example 1 with ProcurementCardSourceAccountingLine

use of org.kuali.kfs.fp.businessobject.ProcurementCardSourceAccountingLine in project cu-kfs by CU-CommunityApps.

the class CuProcurementCardDocument method addSourceAccountingLine.

@Override
public void addSourceAccountingLine(SourceAccountingLine sourceLine) {
    ProcurementCardSourceAccountingLine line = (ProcurementCardSourceAccountingLine) sourceLine;
    line.setSequenceNumber(this.getNextSourceLineNumber());
    for (Iterator iter = transactionEntries.iterator(); iter.hasNext(); ) {
        ProcurementCardTransactionDetail transactionEntry = (ProcurementCardTransactionDetail) iter.next();
        transactionEntry.getSourceAccountingLines().add(line);
    }
    this.nextSourceLineNumber = new Integer(this.getNextSourceLineNumber().intValue() + 1);
}
Also used : ProcurementCardSourceAccountingLine(org.kuali.kfs.fp.businessobject.ProcurementCardSourceAccountingLine) Iterator(java.util.Iterator) ProcurementCardTransactionDetail(org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)

Aggregations

Iterator (java.util.Iterator)1 ProcurementCardSourceAccountingLine (org.kuali.kfs.fp.businessobject.ProcurementCardSourceAccountingLine)1 ProcurementCardTransactionDetail (org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)1