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