Pedram (pebr)
ca18e93958
[FIX] point_of_sale: correct computation of product total with discount
...
Before this commit, if a product had a discount applied in two
different orders, it could lead to incorrect calculations in the report
For instance, if a product priced at 14.45 had a 30% discount applied,
the discounted value would be 10.115, which rounds to 10.12. However,
if there were two orders with the same discount, the report calculation
would count the quantity of a product with the same discount and
calculate the product total amount in one place. This would result in a
discounted value of 10.115 * 2 = 20.23, while in the two different
orders we had two 10.12 which sums to 20.24.
With this commit, the calculation method has been changed. Now, the
product amount total for each line is calculated first, and then the
sum of these amounts is used to calculate the total for all of the
orders. This change ensures accurate computation of the product total
sum when discounts are applied across multiple orders.
opw-3721376
closes odoo/odoo#156160
X-original-commit: bb71f77e117a8a07c1e161f583d136cd5c16a078
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com >
Signed-off-by: Pedram Bi Ria (pebr) <pebr@odoo.com >
2024-03-04 13:26:31 +00:00
..
2024-03-04 09:52:02 +00:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-12 20:24:09 +00:00
2024-01-05 15:14:38 +00:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-18 00:12:23 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-18 00:12:23 +01:00
2024-03-03 00:09:56 +01:00
2024-02-18 00:12:23 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:12:02 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:11:55 +00:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-02-06 18:49:02 +00:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-28 19:49:12 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-04 08:11:56 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-01 12:10:28 +00:00
2024-01-29 23:16:20 +00:00
2024-02-25 00:13:04 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-01 13:48:19 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-03 16:59:08 +00:00
2024-02-29 10:34:16 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-03-01 12:10:26 +00:00
2024-01-18 20:16:02 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-05 04:29:57 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-15 09:30:57 +00:00
2024-02-23 13:10:03 +00:00
2024-02-23 13:10:03 +00:00
2024-02-23 13:10:03 +00:00
2024-02-28 08:15:23 +00:00
2024-02-23 13:10:03 +00:00
2024-02-23 13:10:03 +00:00
2024-02-29 20:40:36 +00:00
2024-02-05 12:20:56 +00:00
2024-02-19 12:27:48 +00:00
2024-01-16 09:55:24 +00:00
2024-01-03 16:59:08 +00:00
2024-02-03 02:06:43 +00:00
2024-02-17 00:25:58 +00:00
2024-02-29 20:40:36 +00:00
2024-02-13 20:52:18 +00:00
2024-02-13 20:52:18 +00:00
2024-02-13 20:52:18 +00:00
2024-02-07 18:34:22 +00:00
2024-01-16 18:00:21 +00:00
2024-02-19 12:27:48 +00:00
2024-02-23 13:09:53 +00:00
2024-01-03 16:59:18 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-03-04 08:11:59 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 19:00:43 +00:00
2024-02-16 02:01:35 +00:00
2024-03-04 08:11:57 +00:00
2024-02-22 19:16:06 +00:00
2024-02-19 12:27:48 +00:00
2024-01-29 02:16:51 +00:00
2024-02-03 19:38:00 +00:00
2024-01-26 06:33:41 +00:00
2024-01-16 09:55:24 +00:00
2024-02-02 10:50:51 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-03 16:59:08 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-03-01 21:26:54 +00:00
2024-02-22 09:06:12 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-16 09:55:24 +00:00
2024-02-24 08:08:30 +00:00
2024-01-15 09:30:53 +00:00
2024-01-10 05:04:28 +00:00
2024-01-26 09:13:03 +00:00
2024-02-16 08:58:21 +00:00
2024-02-29 20:40:36 +00:00
2024-02-28 19:49:05 +00:00
2024-01-16 09:55:24 +00:00
2024-02-29 20:40:36 +00:00
2024-02-23 19:27:36 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-26 09:13:08 +00:00
2024-01-16 09:55:24 +00:00
2024-01-16 09:55:24 +00:00
2024-01-26 21:07:50 +00:00
2024-02-29 20:40:36 +00:00
2024-02-29 20:40:36 +00:00
2024-01-20 05:31:55 +00:00
2024-01-16 09:55:24 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:11:55 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-18 00:12:23 +01:00
2024-02-18 00:12:23 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-18 00:12:23 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-04 08:11:56 +00:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-29 08:58:00 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-26 08:26:06 +00:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 13:26:31 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-27 16:16:09 +00:00
2024-02-25 00:13:04 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-01 13:48:15 +00:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:12:05 +00:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-29 14:07:46 +00:00
2024-02-26 08:26:04 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-01-20 09:33:37 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-04 08:11:51 +00:00
2024-02-06 18:49:02 +00:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-27 17:40:50 +00:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-18 00:12:23 +01:00
2024-03-04 08:12:03 +00:00
2024-02-18 00:12:23 +01:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-03-04 08:11:53 +00:00
2024-02-03 06:59:49 +00:00
2024-02-15 18:21:31 +00:00
2024-02-28 19:49:12 +00:00
2024-03-04 08:11:55 +00:00
2024-02-28 19:49:12 +00:00
2024-01-24 23:07:09 +00:00
2024-01-15 06:46:08 +00:00
2024-02-19 15:02:20 +00:00
2024-01-31 06:59:10 +00:00
2024-02-26 21:22:46 +00:00
2024-01-22 19:00:58 +00:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 11:29:45 +00:00
2024-03-04 09:52:01 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 09:52:06 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-01 10:29:41 +00:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-26 21:22:53 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 11:29:47 +00:00
2024-03-03 00:09:56 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-02-11 00:14:17 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-11 00:14:17 +01:00
2024-02-25 00:13:04 +01:00
2024-02-25 00:13:04 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:11:58 +00:00
2024-02-12 10:44:43 +00:00
2024-03-03 00:09:56 +01:00
2024-02-06 18:49:02 +00:00
2024-02-29 14:07:46 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-04 08:11:54 +00:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00
2024-03-03 00:09:56 +01:00