You are here

function _commerce_reports_tax_finished in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 modules/tax/commerce_reports_tax.batch.inc \_commerce_reports_tax_finished()

Finishes the batch process and stores any remaining information.

1 string reference to '_commerce_reports_tax_finished'
commerce_reports_tax_generate in modules/tax/commerce_reports_tax.module
Generate historic tax information.

File

modules/tax/commerce_reports_tax.batch.inc, line 52
Functions for batch processing tax reports.

Code

function _commerce_reports_tax_finished($success, $results, $operations) {
  if ($success) {
    variable_set('commerce_reports_tax_batch_finished', REQUEST_TIME);
    drupal_set_message(t('Successfully generated tax report.'));
  }
  else {
    drupal_set_message(t('There was a problem whilst generating the tax report. The information might be incomplete or erroneous.'), 'error');
  }
}