Use digits_compute= dp.get_precision('Product Price') on unit price field on pos order line
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
In OpenERP 7 POS backend, when i try to create two orders in which in one i am ordering 4 quantity of the product as a single order line and in the second one in am ordering 4 quantity of the same product as 4 order lines with quantity 1. But the total amount to pay for two orders are different. Step to reproduce this bug:
1 - I am having a product "USB Adapter" with unit price as 1.95.
2 - Create a POS order from backend with single order line for the product "USB Adapter" with a discount of 10%.
3 - Create another POS order form backend with 4 individual order line of quantity 1 and discount 10% for the product "USB Adapter"
The total i am getting is 7.02 for the order with single order line and 7.04 for the order with 4 order lines.
Hello,
This need to be working fine when product price decimal accuracy will be 3 digit because when you applied the 10% discount with price 1.95 it will be 1.755 and it will be converted into 1.76 due to digits(16,2). we can make same as sale order on pos too i.e digits_compute= dp.get_ precision( 'Product Price') on unit price and when users sets the decimal accuracy based on his requirement then it will resolve this issue.
Thank you!