Search in sources :

Example 1 with ProcurementCardTargetAccountingLine

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

the class CuProcurementCardDocument method addTargetAccountingLine.

@Override
public void addTargetAccountingLine(TargetAccountingLine targetLine) {
    ProcurementCardTargetAccountingLine line = (ProcurementCardTargetAccountingLine) targetLine;
    line.setSequenceNumber(this.getNextTargetLineNumber());
    for (Iterator iter = transactionEntries.iterator(); iter.hasNext(); ) {
        ProcurementCardTransactionDetail transactionEntry = (ProcurementCardTransactionDetail) iter.next();
        transactionEntry.getTargetAccountingLines().add(line);
    }
    this.nextTargetLineNumber = new Integer(this.getNextTargetLineNumber().intValue() + 1);
}
Also used : ProcurementCardTargetAccountingLine(org.kuali.kfs.fp.businessobject.ProcurementCardTargetAccountingLine) Iterator(java.util.Iterator) ProcurementCardTransactionDetail(org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)

Aggregations

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