Closed (fixed)
Project:
Balance Tracker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Dec 2012 at 05:33 UTC
Updated:
17 Jul 2013 at 14:51 UTC
Balance tracker uses floats for amount and balance fields, which can lead to nasty bugs.
http://pixeljets.com/blog/storing-monetary-amounts-db-use-decimals-not-f...
Comments
Comment #1
sergeypavlenko commentedYou're absolutely right, correct to use "DECIMAL". How to leave decimal places for operations with the balance? I think the 4 characters will be enough. What do you think? If we decide that question, I could write a patch.
Comment #2
sergeypavlenko commentedFixed. Changed type for fields. Commit d18c6c9.
Comment #3
sergeypavlenko commentedHave passed 2 weeks, no misspellings found, the bug is closed.