[-] Core: Fix #PSCFV-6162 - can't add no tax for specific zip code or state
This commit is contained in:
1 parent
9f474669e6
commit
4320f4c30c
2 files changed
+2
-2
No files matched your search
@@ -83,7 +83,7 @@ class TaxRulesTaxManagerCore implements TaxManagerInterface
|
|||||||
WHERE `id_country` = '.(int)$this->address->id_country.'
|
WHERE `id_country` = '.(int)$this->address->id_country.'
|
||||||
AND `id_tax_rules_group` = '.(int)$this->type.'
|
AND `id_tax_rules_group` = '.(int)$this->type.'
|
||||||
AND `id_state` IN (0, '.(int)$this->address->id_state.')
|
AND `id_state` IN (0, '.(int)$this->address->id_state.')
|
||||||
AND (\''.pSQL($postcode).'\' BETWEEN `zipcode_from` AND `zipcode_to` OR `zipcode_from` = 0 OR `zipcode_from` = \''.pSQL($postcode).'\')
|
AND (\''.pSQL($postcode).'\' BETWEEN `zipcode_from` AND `zipcode_to` OR (`zipcode_to` = 0 AND `zipcode_from` IN(0, \''.pSQL($postcode).'\')))
|
||||||
ORDER BY `zipcode_from` DESC, `zipcode_to` DESC, `id_state` DESC, `id_country` DESC');
|
ORDER BY `zipcode_from` DESC, `zipcode_to` DESC, `id_state` DESC, `id_country` DESC');
|
||||||
|
|
||||||
$behavior = 0;
|
$behavior = 0;
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
|
|||||||
'id' => 'id_tax',
|
'id' => 'id_tax',
|
||||||
'name' => 'name',
|
'name' => 'name',
|
||||||
'default' => array(
|
'default' => array(
|
||||||
'value' => 'name',
|
'value' => 0,
|
||||||
'label' => $this->l('No Tax')
|
'label' => $this->l('No Tax')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user