Skip to content
Snippets Groups Projects
Commit 7a979b2d authored by Mart Raudsepp's avatar Mart Raudsepp Committed by Josse Colpaert
Browse files

[FIX] Fix floating point handling in purchase _prepare_order_line_move

Without this better floating point handling, an extra stock move might
be created for zero quantity for some order lines upon PO confirmation,
because qty is equal to something closer to e.g 1.14e-13, but this is
larger than 0, so it creates a stock.move, which gets rounded too late
to 0.0

Closes #3346
parent 05de60cb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment