bemade-addons/bemade_margin_vendor_pricelist/models
Marc Durepos 5f6fb6002a bemade_margin_vendor_pricelist: Fix division by zero
Added tests and fixed an edge case where computing the gross profit
resulted in a division by zero. This happened in production with a zero
ordered quantity on a sales order line and a negative product
availability value.

Also added some test cases to ensure that the calculations for GP and GP
% are correct across logically different cases.
2024-09-19 09:52:57 -04:00
..
__init__.py uniform model 2024-03-06 08:23:13 -05:00
sale_order.py Fix strings for margin_vendor_pricelist fields 2024-05-07 10:06:52 -04:00
sale_order_line.py bemade_margin_vendor_pricelist: Fix division by zero 2024-09-19 09:52:57 -04:00