function _commerce_reports_tax_finished in Commerce Reporting 7.4
Same name and namespace in other branches
- 7.3 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');
}
}