Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Tax Indexer: Customer and Product tax class ids are registered wrongly #353

Closed
mamsincl opened this issue Nov 2, 2020 · 0 comments
Closed

Comments

@mamsincl
Copy link

mamsincl commented Nov 2, 2020

https://mysite.local.com/vue_storefront_magento/taxrule/_search?pretty
image

M2 backend:
image

As you see indexer nicely picking up every information except Customer and Product Tax classes.
The related indexer part it falling back to https://github.com/DivanteLtd/magento2-vsbridge-indexer/blob/main/src/module-vsbridge-indexer-tax/ResourceModel/TaxClasses.php#L39, and according to fetchAssoc($select):

Fetches all SQL result rows as an associative array.

The first column is the key, the entire row array is the value.
You should construct the query to be sure that the first column contains unique values,
or else rows with duplicate values in the first column will overwrite previous data.

Running the row query directly on DB results in 42 rows, but during debugging (since the limitation of the fetchAssoc) only can see 4 records.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants