Search in sources :

Example 1 with ProcurementCardTransactionDetail

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);
}
Also used : ProcurementCardTargetAccountingLine(org.kuali.kfs.fp.businessobject.ProcurementCardTargetAccountingLine) Iterator(java.util.Iterator) ProcurementCardTransactionDetail(org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)

Example 2 with ProcurementCardTransactionDetail

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;
}
Also used : ProcurementCardTargetAccountingLine(org.kuali.kfs.fp.businessobject.ProcurementCardTargetAccountingLine) TargetAccountingLine(org.kuali.kfs.sys.businessobject.TargetAccountingLine) ProcurementCardTransactionDetail(org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)

Example 3 with ProcurementCardTransactionDetail

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);
}
Also used : ProcurementCardSourceAccountingLine(org.kuali.kfs.fp.businessobject.ProcurementCardSourceAccountingLine) Iterator(java.util.Iterator) ProcurementCardTransactionDetail(org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)

Aggregations

ProcurementCardTransactionDetail (org.kuali.kfs.fp.businessobject.ProcurementCardTransactionDetail)3 Iterator (java.util.Iterator)2 ProcurementCardTargetAccountingLine (org.kuali.kfs.fp.businessobject.ProcurementCardTargetAccountingLine)2 ProcurementCardSourceAccountingLine (org.kuali.kfs.fp.businessobject.ProcurementCardSourceAccountingLine)1 TargetAccountingLine (org.kuali.kfs.sys.businessobject.TargetAccountingLine)1