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

System auto-suggest a batch with 0 quantity #30339

Closed
guilmori opened this issue Mar 21, 2022 · 1 comment · Fixed by #32788
Closed

System auto-suggest a batch with 0 quantity #30339

guilmori opened this issue Mar 21, 2022 · 1 comment · Fixed by #32788
Assignees

Comments

@guilmori
Copy link

Information about bug

Why truncate decimals when validating batch qty ?

I need 0.4 kg, and the system select a batch with 0 qty.

if cint(qty) <= cint(batch.qty):

Module

stock

Version

v13.16.0

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

No response

@guilmori guilmori added the bug label Mar 21, 2022
@ankush
Copy link
Member

ankush commented Mar 21, 2022

makes sense. This should be flt and not cint. Can you send a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

5 participants