You are here

function commerce_reports_tax_generate in Commerce Reporting 7.3

Same name and namespace in other branches
  1. 7.4 modules/tax/commerce_reports_tax.module \commerce_reports_tax_generate()

Generate historic tax information.

2 calls to commerce_reports_tax_generate()
commerce_reports_tax_form_submit_generate in modules/tax/commerce_reports_tax.admin.inc
Submit handler that generates a tax report.
commerce_reports_tax_generate_callback in modules/tax/commerce_reports_tax.admin.inc
Callback for tax report generation.

File

modules/tax/commerce_reports_tax.module, line 206

Code

function commerce_reports_tax_generate() {
  $batch = array(
    'title' => t('Generating tax report'),
    'operations' => array(
      array(
        '_commerce_reports_tax_generate',
        array(),
      ),
    ),
    'finished' => '_commerce_reports_tax_finished',
    'file' => drupal_get_path('module', 'commerce_reports_tax') . '/commerce_reports_tax.batch.inc',
  );
  batch_set($batch);
}