Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] connector_prestashop_catalog_manager: impact_price rounding #8

Conversation

AurelijaNorvaisaite
Copy link

@AurelijaNorvaisaite AurelijaNorvaisaite commented Mar 7, 2024

6 is the rounding precision used by PrestaShop.

Error occurred because of pricelist price rounding via method _get_products_price

https://hive.versada.eu/projects/metalurga-support-maintenance/work_packages/22978/activity

return {"price": round(extra_to_export / self._get_factor_tax(tax), 6)}
else:
return {"price": extra_to_export}
return {"price": round(extra_to_export, 6)}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use a float_round?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as in place above (and every other place in this connector) it simply uses round, I think it should work as expected with it.

@AurelijaNorvaisaite AurelijaNorvaisaite merged commit 5991b58 into 16.0-versada Mar 7, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants