[-] BO: Fix tax rule edition - unique tax rule can't be edited
This commit is contained in:
@@ -404,7 +404,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
|
||||
{
|
||||
foreach ($this->selected_states as $id_state)
|
||||
{
|
||||
if ($tax_rules_group->hasUniqueTaxRuleForCountry($id_country, $id_state))
|
||||
if ($tax_rules_group->hasUniqueTaxRuleForCountry($id_country, $id_state, $id_rule))
|
||||
{
|
||||
$this->errors[] = Tools::displayError('A tax rule already exists for this country/state with tax only behavior');
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user