mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-29 12:51:26 +01:00
* 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>