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

sale_suggested_price : Refactor product_category._round #458

Open
victor-champonnois opened this issue Oct 19, 2022 · 0 comments
Open

sale_suggested_price : Refactor product_category._round #458

victor-champonnois opened this issue Oct 19, 2022 · 0 comments

Comments

@victor-champonnois
Copy link
Member

  • Refactor product_category._round:
    set rounding_precision and rounding_method to required
    remove default values from the _round method

# Use default value 0.05 and "HALF_UP"
# in case someone erase the value on the category
# Keep default value on the field to make it explicit to the end user
return float_round(
price,

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

No branches or pull requests

1 participant