← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674405] [NEW] V6.0-RC1-Decimal_precision could be used to manage rounded all tax included product price

 

Public bug reported:

Platform: Ubuntu 10.04-OpenERP 6-RC1
1) It is not possible to manage decimal_precision on list_price to make sure that all tax included price presented to customers will be correctly rounded
eg. I want the public price (all tax included) to be 2.40 ; VAT = 5.5% ; if list_price uses 2 digits, it is impossible to show 2.40 (either 2.27 => 2.39 or 2.28 => 2.41)

In V5, you need to use the sale_tax_included module.

2) Proposal
- Change variable 'Sale Price' to 'Sale Price woTax' in product.py
Line 240 : 'list_price':
fields.float('Sale Price', digits_compute=dp.get_precision('Sale Price woTax'), help="Base price for computing the customer price. Sometimes called the catalog price."),
Line 425 & 426 :
'price': fields.function(_product_price, method=True, type='float', string='Pricelist', digits_compute=dp.get_precision('Sale Price woTax')),
'lst_price' : fields.function(_product_lst_price, method=True, type='float', string='List Price', digits_compute=dp.get_precision('Sale Price woTax')),

- add a variable in decimal_precision: Usage : Sale Price woTax ; Digits
: x

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
V6.0-RC1-Decimal_precision could be used to manage rounded all tax included product price
https://bugs.launchpad.net/bugs/674405
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
Platform: Ubuntu 10.04-OpenERP 6-RC1
1) It is not possible to manage decimal_precision on list_price to make sure that all tax included price presented to customers will be correctly rounded
eg. I want the public price (all tax included) to be 2.40 ; VAT = 5.5% ; if list_price uses 2 digits, it is impossible to show 2.40 (either 2.27 => 2.39 or 2.28 => 2.41)

In V5, you need to use the sale_tax_included module. 

2) Proposal
- Change variable 'Sale Price' to 'Sale Price woTax' in product.py
Line 240 : 'list_price':
fields.float('Sale Price', digits_compute=dp.get_precision('Sale Price woTax'), help="Base price for computing the customer price. Sometimes called the catalog price."),
Line 425 & 426 :
'price': fields.function(_product_price, method=True, type='float', string='Pricelist', digits_compute=dp.get_precision('Sale Price woTax')),
'lst_price' : fields.function(_product_lst_price, method=True, type='float', string='List Price', digits_compute=dp.get_precision('Sale Price woTax')),

- add a variable in decimal_precision: Usage : Sale Price woTax ; Digits : x





Follow ups

References