Use digits_compute= dp.get_precision('Product Price') on unit price field on pos order line

Bug #1246655 reported by Prajul P T
16
This bug affects 3 people
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.

Tags: openerp-7 pos
Prajul P T (prajul07)
description: updated
diannejose (dianne-o)
tags: added: pos
Revision history for this message
Amit Parik (amit-parik) wrote :

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!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
summary: - POS backend total amount calculation error
+ Use digits_compute= dp.get_precision('Product Price') on unit price
+ field on pos order line
Revision history for this message
diannejose (dianne-o) wrote :

The same issue happens in sale order also.

Revision history for this message
Prajul P T (prajul07) wrote :

Changing the decimal precision from digits(16,2) to digits_compute= dp.get_precision('Product Price') didn't solve the issue for me. I think we have to consider the case of fields "SubTotal" and "Total" in pos order lines to solve this issue because the Total amount of a pos order is calculated using the values from these fields in pos order line.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.