Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
report_tax.php
Go to the documentation of this file.
1 <?php
7 // refresh report statistics
10 $reportResource = $objectManager->create(\Magento\Tax\Model\ResourceModel\Report\Tax::class);
11 $reportResource->beginTransaction();
12 // prevent table truncation by incrementing the transaction nesting level counter
13 try {
14  $reportResource->aggregate();
15  $reportResource->commit();
16 } catch (\Exception $e) {
17  $reportResource->rollBack();
18  throw $e;
19 }
$reportResource
Definition: report_tax.php:10
$objectManager
Definition: report_tax.php:8