Search in sources :

Example 1 with ProcurementCardTransactionDetailExtendedAttribute

use of edu.cornell.kfs.fp.businessobject.ProcurementCardTransactionDetailExtendedAttribute in project cu-kfs by CU-CommunityApps.

the class ProcurementCardCreateDocumentServiceImpl method createProcurementCardTransactionDetailExtension.

protected void createProcurementCardTransactionDetailExtension(ProcurementCardTransaction transaction, ProcurementCardTransactionDetail transactionDetail) {
    ProcurementCardTransactionDetailExtendedAttribute detailExtension = buildTransactionDetailExtensionObject(transactionDetail);
    if (ObjectUtils.isNotNull(transaction.getExtension())) {
        ProcurementCardTransactionExtendedAttribute extension = (ProcurementCardTransactionExtendedAttribute) transaction.getExtension();
        detailExtension.setDocumentNumber(transactionDetail.getDocumentNumber());
        detailExtension.setFinancialDocumentTransactionLineNumber(transactionDetail.getFinancialDocumentTransactionLineNumber());
        createPurchasingDataDetails(extension, detailExtension);
    }
    transactionDetail.setExtension(detailExtension);
}
Also used : ProcurementCardTransactionDetailExtendedAttribute(edu.cornell.kfs.fp.businessobject.ProcurementCardTransactionDetailExtendedAttribute) ProcurementCardTransactionExtendedAttribute(edu.cornell.kfs.fp.businessobject.ProcurementCardTransactionExtendedAttribute)

Aggregations

ProcurementCardTransactionDetailExtendedAttribute (edu.cornell.kfs.fp.businessobject.ProcurementCardTransactionDetailExtendedAttribute)1 ProcurementCardTransactionExtendedAttribute (edu.cornell.kfs.fp.businessobject.ProcurementCardTransactionExtendedAttribute)1