[PoS frontend] when you receive payment, entering a number with a comma => the floats after the comma are ignored

Bug #1099404 reported by Gilles Major (OpenERP)
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Low
OpenERP R&D Addons Team 3

Bug Description

1. go to point of sale and open a session
2. select some products
3. select a journal (cash or bank)
4. enter an amount but use a comma instead of a dot ( , )

the numbers after the comma are completely ignored.

I suggest automatically converting a comma into a dot or make it so that commas can be used

video:
https://docs.google.com/file/d/0B7c_6dPUa6bcTWtsRkM5NFpDSjA/edit

Related branches

Revision history for this message
van der Essen Frédéric (OpenERP) (fva-openerp) wrote :

We should be careful about this, commas are used to separate thousands in US and UK :
1,000,000.000 = 1000000

I think such behaviour should be based on the user's locale. Standardising on the dot seems a safer bet in the mean time.

I tried on other fields in openerp and their behaviour look broken as well : try 18,00 in a price field -> it is converted to 1800.00 wtf ?

Revision history for this message
van der Essen Frédéric (OpenERP) (fva-openerp) wrote :

Note : The display of the values in the pos should also use the user's locale. No sense in parsing with commas and displaying with dots ...

Changed in openobject-addons:
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Foram Katharotiya (OpenERP) (fka-openerp) wrote :

Hello,

  - It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1099404-fka.
    revno : 8522

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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