Search in sources :

Example 16 with NonTransactional

use of org.kuali.kfs.sys.service.NonTransactional in project cu-kfs by CU-CommunityApps.

the class CuPaymentRequestServiceImpl method removeHoldOnPaymentRequest.

/**
 * @see org.kuali.kfs.module.purap.document.service.PaymentRequestService#removeHoldOnPaymentRequest(org.kuali.kfs.module.purap.document.PaymentRequestDocument)
 */
@Override
@NonTransactional
public PaymentRequestDocument removeHoldOnPaymentRequest(PaymentRequestDocument document, String note) throws Exception {
    // save the note
    Note noteObj = documentService.createNoteFromDocument(document, note);
    document.addNote(noteObj);
    noteService.save(noteObj);
    document.setHoldIndicator(false);
    document.setLastActionPerformedByPersonId(null);
    purapService.saveDocumentNoValidation(document);
    // force reindexing
    reIndexDocument(document);
    return document;
}
Also used : Note(org.kuali.kfs.krad.bo.Note) NonTransactional(org.kuali.kfs.sys.service.NonTransactional)

Aggregations

NonTransactional (org.kuali.kfs.sys.service.NonTransactional)16 Note (org.kuali.kfs.krad.bo.Note)6 HashMap (java.util.HashMap)4 CapitalAssetInformation (org.kuali.kfs.fp.businessobject.CapitalAssetInformation)3 CuPaymentRequestDocument (edu.cornell.kfs.module.purap.document.CuPaymentRequestDocument)2 ArrayList (java.util.ArrayList)2 Map (java.util.Map)2 CuElectronicInvoiceRejectDocument (edu.cornell.kfs.module.purap.document.CuElectronicInvoiceRejectDocument)1 CUBankService (edu.cornell.kfs.sys.service.CUBankService)1 Timestamp (java.sql.Timestamp)1 Calendar (java.util.Calendar)1 List (java.util.List)1 MaintenanceDocument (org.kuali.kfs.kns.document.MaintenanceDocument)1 AssetGlobal (org.kuali.kfs.module.cam.businessobject.AssetGlobal)1 AssetPaymentAssetDetail (org.kuali.kfs.module.cam.businessobject.AssetPaymentAssetDetail)1 AssetPaymentDocument (org.kuali.kfs.module.cam.document.AssetPaymentDocument)1 ElectronicInvoiceRejectReason (org.kuali.kfs.module.purap.businessobject.ElectronicInvoiceRejectReason)1 PaymentRequestDocument (org.kuali.kfs.module.purap.document.PaymentRequestDocument)1 CustomerProfile (org.kuali.kfs.pdp.businessobject.CustomerProfile)1 PaymentDetail (org.kuali.kfs.pdp.businessobject.PaymentDetail)1