[-] Core: Fix #PSCFV-6162 - can't add no tax for specific zip code or state

This commit is contained in:
Rémi Gaillard
2012-12-17 12:29:29 +01:00
parent 9f474669e6
commit 4320f4c30c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ class TaxRulesTaxManagerCore implements TaxManagerInterface
WHERE `id_country` = '.(int)$this->address->id_country.'
AND `id_tax_rules_group` = '.(int)$this->type.'
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');
$behavior = 0;
@@ -298,7 +298,7 @@ class AdminTaxRulesGroupControllerCore extends AdminController
'id' => 'id_tax',
'name' => 'name',
'default' => array(
'value' => 'name',
'value' => 0,
'label' => $this->l('No Tax')
)
),