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