51 \
Magento\Framework\Registry $coreRegistry,
55 $this->_coreRegistry = $coreRegistry;
58 parent::__construct($context);
69 $resultPage->setActiveMenu(
'Magento_Tax::sales_tax_rules')
70 ->addBreadcrumb(
__(
'Tax'),
__(
'Tax'))
71 ->addBreadcrumb(
__(
'Tax Rules'),
__(
'Tax Rules'));
84 $taxRule = $this->taxRuleDataObjectFactory->create();
85 if (isset(
$postData[
'tax_calculation_rule_id'])) {
94 if (isset(
$postData[
'tax_customer_class'])) {
97 if (isset(
$postData[
'tax_product_class'])) {
103 if (isset(
$postData[
'calculate_subtotal'])) {
populateTaxRule($postData)
$taxRuleDataObjectFactory
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry, \Magento\Tax\Api\TaxRuleRepositoryInterface $ruleService, \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $taxRuleDataObjectFactory)