← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 674398] [NEW] Decimal_precision does not allow to type VAT with 4 digits

 

Public bug reported:

Platform: Ubuntu 10.04-OpenERP 6-RC1
1) Digits used for VAT percentage are linked to decimal_precision variable 'Account' in account.py.
For normal configuration, digits = 2. It means that you cannot type 0.1925 if your VAT equals 19,25%.
If you change value of 'Account' to 4, then all your account amounts show 4 digits.
2) Proposal :
Change 'Account' to 'TaxAmount' in account.py in line 1658 :
'amount': fields.float('Amount', required=True, digits_compute=dp.get_precision('TaxAmount'), help="For taxes of type percentage, enter % ratio between 0-1."),
Create new variable in decimal accuracy menu : Usage: TaxAmount ; Digits: 4 (as an example)

This bug is completed by two other bugs around the same issue: decimal_precision:
- Change 'Sale Price' to 'Sale Price woTax' on List_price in product.py
- Allow change of decimals by default in configuration (and not in decimal_precision.py) to manage currencies without decimals

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

** Description changed:

  Platform: Ubuntu 10.04-OpenERP 6-RC1
- 1) Digits used for VAT percentage is linked to decimal_precision variable 'Account' in account.py. 
- For normal configuration, digits = 2. It means that you cannot type 0.1925 if your VAT equals 19,25%. 
- If you change value of 'Account' to 4, then all your account amounts show 4 digits. 
- 2) Proposal : 
- Change 'Account' to 'TaxAmount' in account.py in line 1658 :  
- 'amount': fields.float('Amount', required=True, digits_compute=dp.get_precision('TaxAmount'), help="For taxes of type percentage, enter % ratio between 0-1."), 
+ 1) Digits used for VAT percentage are linked to decimal_precision variable 'Account' in account.py.
+ For normal configuration, digits = 2. It means that you cannot type 0.1925 if your VAT equals 19,25%.
+ If you change value of 'Account' to 4, then all your account amounts show 4 digits.
+ 2) Proposal :
+ Change 'Account' to 'TaxAmount' in account.py in line 1658 :
+ 'amount': fields.float('Amount', required=True, digits_compute=dp.get_precision('TaxAmount'), help="For taxes of type percentage, enter % ratio between 0-1."),
  Create new variable in decimal accuracy menu : Usage: TaxAmount ; Digits: 4 (as an example)
  
  This bug is completed by two other bugs around the same issue: decimal_precision:
  - Change 'Sale Price' to 'Sale Price woTax' on List_price in product.py
  - Allow change of decimals by default in configuration (and not in decimal_precision.py) to manage currencies without decimals

-- 
Decimal_precision does not allow to type VAT with 4 digits
https://bugs.launchpad.net/bugs/674398
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) Digits used for VAT percentage are linked to decimal_precision variable 'Account' in account.py.
For normal configuration, digits = 2. It means that you cannot type 0.1925 if your VAT equals 19,25%.
If you change value of 'Account' to 4, then all your account amounts show 4 digits.
2) Proposal :
Change 'Account' to 'TaxAmount' in account.py in line 1658 :
'amount': fields.float('Amount', required=True, digits_compute=dp.get_precision('TaxAmount'), help="For taxes of type percentage, enter % ratio between 0-1."),
Create new variable in decimal accuracy menu : Usage: TaxAmount ; Digits: 4 (as an example)

This bug is completed by two other bugs around the same issue: decimal_precision:
- Change 'Sale Price' to 'Sale Price woTax' on List_price in product.py
- Allow change of decimals by default in configuration (and not in decimal_precision.py) to manage currencies without decimals







Follow ups

References