Taxrates are being omitted
cyzeal opened this issue · comments
Problem
Taxrates are fetched with Varien_Db_Adapter_Interface::fetchAssoc()
in src/app/code/community/Divante/VueStorefrontIndexer/Model/Resource/Tax/Rates.php - this method uses the first result column as array keys. However, the first column values (tax_calculation_rule_id) will not be unique in rules with multiple country-based rates, which results in missing tax rates.
See https://framework.zend.com/manual/1.10/en/zend.db.adapter.html#zend.db.adapter.select.fetchassoc
Solution
Use Varien_Db_Adapter_Interface::fetchAll()
instead.