Files
dolibarr/htdocs
omogenot 73eb4e606a NEW : Rounding unit price - line discount before applying quantity - option MAIN_APPLY_DISCOUNT_ON_UNIT_PRICE_THEN_ROUND_BEFORE_MULTIPLICATION_BY_QTY (#33690)
* Rounding unit price - line discount before applying quantity

On some systems, the line total price is calculated based on the discount applied on the unit price first, giving a new rounded unit price, and then multiplied by the quantity. Whereas the current way Dolibarr acts is to apply the discount on the subtotal (unit price * quantity).
Using an extra OTHER SETUP constant 'MAIN_ROUND_UNIT_PRICE_BEFORE_QTY', we can choose between the two ways.

* Update price.lib.php

* Update price.lib.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-01 21:36:52 +02:00
..
2025-04-01 21:32:56 +02:00
2025-04-01 09:36:36 +02:00
2025-03-19 13:48:56 +01:00
2025-03-24 20:52:13 +01:00
2025-03-25 20:24:14 +01:00
2025-03-30 20:56:28 +02:00
2025-03-26 00:56:24 +01:00
2025-03-26 00:56:24 +01:00
2025-03-26 00:56:24 +01:00
2025-03-26 00:56:24 +01:00
2025-03-26 00:56:24 +01:00
2025-03-15 11:21:03 +01:00
2025-03-12 18:53:36 +01:00
2025-03-24 20:52:13 +01:00
2025-03-21 14:47:35 +01:00
2025-03-24 20:52:13 +01:00
2025-03-26 00:56:24 +01:00
2025-04-01 21:32:56 +02:00
2025-03-24 20:52:13 +01:00
2025-03-29 15:20:28 +01:00
2025-03-26 19:51:02 +01:00
2025-03-29 16:46:35 +01:00
2025-03-26 21:03:14 +01:00
2025-03-24 20:52:13 +01:00
2025-03-28 02:40:17 +01:00
2025-03-25 14:02:01 +01:00
Doc
2025-03-21 12:31:39 +01:00