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

Error in calculation cost in BOM #31740

Open
3 tasks
lmag opened this issue Nov 8, 2024 · 5 comments
Open
3 tasks

Error in calculation cost in BOM #31740

lmag opened this issue Nov 8, 2024 · 5 comments
Assignees
Labels
Bug This is a bug (something does not work as expected)

Comments

@lmag
Copy link
Member

lmag commented Nov 8, 2024

Bug

BOM Calculation in 20.0.X :

image

BOM Calculation in 19.0.X :

image

Dolibarr Version

20.0.1

Steps to reproduce the behavior and expected behavior

It seems that come from migration SQL value in database 19 -> 20
c_unit is Minutes whas "i" and now it "mn"
And in some function we still using "i"

Several things require revision like

Function PHP (Date.lib)

  • convertdurationHour
  • dol_time_plus_duree
  • Etc
    @eldy
@lmag lmag added the Bug This is a bug (something does not work as expected) label Nov 8, 2024
@lmag
Copy link
Member Author

lmag commented Nov 8, 2024

@eldy Why using the accronyme "mn" for minutes it is not allowed

image

image

https://fr.wikipedia.org/wiki/Syst%C3%A8me_international_d%27unit%C3%A9s

@frederic34
Copy link
Member

#31746

@lmag
Copy link
Member Author

lmag commented Nov 9, 2024

Thank @frederic34 but I still not undertanding this choice ?

@frederic34
Copy link
Member

#31755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

4 participants