Letractively / osclass

Automatically exported from code.google.com/p/osclass
0 stars 0 forks source link

Wrong price format #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Post new item
2. Put price 500
3. Access item on a web page. Price is 500.000

What is the expected output? What do you see instead?
Expected output is 500

Please use labels and text to provide additional information.

Price column type in MySQL should be changed to FLOAT(9,2) instead of 
FLOAT(9,3)

Original issue reported on code.google.com by maksim.b...@gmail.com on 2 Feb 2010 at 11:38

GoogleCodeExporter commented 8 years ago
Ok. I'm sure we need to add a money format to the settings to show the prices 
in one
way or another.
But I'm not sure about the float precision. I think 3 decimals are fine for some
categories like seeds, or clothes, special services etc.

Original comment by santiago...@gmail.com on 3 Feb 2010 at 3:18

GoogleCodeExporter commented 8 years ago

Original comment by santiago...@gmail.com on 23 Mar 2010 at 6:44