use of org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail 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);
}
use of org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail in project cu-kfs by CU-CommunityApps.
the class CuProcurementCardDocument method getAccountNumberForSearching.
public String getAccountNumberForSearching() {
ProcurementCardTransactionDetail transaction = (ProcurementCardTransactionDetail) transactionEntries.get(0);
TargetAccountingLine tal = (TargetAccountingLine) transaction.getTargetAccountingLines().get(0);
String acctNbr = tal.getAccountNumber();
return acctNbr;
}
use of org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail 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