/**
  * Resets the corporate card payment extract date and paid date on the document to null
  *
  * @see
  *     org.kuali.kfs.sys.batch.service.PaymentSourceToExtractService#resetFromExtraction(org.kuali.kfs.sys.document.PaymentSource)
  */
 @Override
 public void resetFromExtraction(TEMReimbursementDocument paymentSource) {
   try {
     paymentSource.setCorporateCardPaymentExtractDate(null);
     paymentSource.setCorporateCardPaymentPaidDate(null);
     getDocumentService()
         .saveDocument(
             paymentSource, AccountingDocumentSaveWithNoLedgerEntryGenerationEvent.class);
   } catch (WorkflowException we) {
     LOG.error(
         "encountered workflow exception while attempting to save Disbursement Voucher: "
             + paymentSource.getDocumentNumber()
             + " "
             + we);
     throw new RuntimeException(we);
   }
 }
 /**
  * Sets the corporate card payment extracted date on the document
  *
  * @see
  *     org.kuali.kfs.sys.batch.service.PaymentSourceToExtractService#markAsExtracted(org.kuali.kfs.sys.document.PaymentSource,
  *     java.sql.Date)
  */
 @Override
 public void markAsExtracted(
     TEMReimbursementDocument document, Date sqlProcessRunDate, KualiInteger paymentGroupId) {
   try {
     document.setCorporateCardPaymentExtractDate(sqlProcessRunDate);
     associatePaymentGroupWithCreditCardData(document, paymentGroupId);
     getDocumentService()
         .saveDocument(document, AccountingDocumentSaveWithNoLedgerEntryGenerationEvent.class);
   } catch (WorkflowException we) {
     LOG.error(
         "Could not save TEMReimbursementDocument document #"
             + document.getDocumentNumber()
             + ": "
             + we);
     throw new RuntimeException(we);
   }
 }