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

Round floating-point price to a nearest integer #4807

Open
vladimir-8 opened this issue Dec 23, 2024 · 0 comments
Open

Round floating-point price to a nearest integer #4807

vladimir-8 opened this issue Dec 23, 2024 · 0 comments
Labels
Admin Interface An issue related to the interface for admin tasks. Ex: Invoicing, shift tracking, creating shops bug Cooperative: Transversal Concepts Pricing

Comments

@vladimir-8
Copy link
Contributor

To Reproduce

Pricing rule:

Image

Is stored in the database as:

Image

Expected behavior

The price should be stored as 2040

Additional context

https://coopcycle.slack.com/archives/C4UT4DGQ3/p1734972720344749

@vladimir-8 vladimir-8 added bug Admin Interface An issue related to the interface for admin tasks. Ex: Invoicing, shift tracking, creating shops Cooperative: Transversal Concepts Pricing labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Interface An issue related to the interface for admin tasks. Ex: Invoicing, shift tracking, creating shops bug Cooperative: Transversal Concepts Pricing
Projects
None yet
Development

No branches or pull requests

1 participant