El jueves, 12 de diciembre de 2013 08:10:09 UTC-5, Cédric Krier escribió: > > On 12/12/13 04:53 -0800, oscar_alvarez wrote: > > Hi, boys > > > > Almost all my clients/customers have suggested that the cost price and > list > > price field in product model it has too many decimal digits (4) and this > > create a little visual confusion with thousands values for users in > > Colombia so just 2 digits is fine, but to change this feature is not > > possible without touch code, I understand that for the currency value in > > Europe 4 digits is fine, but I want to propose that the decimal digits > for > > product model (including sale and purchase with unit price), it being > set > > in a new model configuration with a Singleton Model for product module > and > > default value is setting in 4, I can to work in this codereview/patch. > > I'm hardly against such "feature". Number of digits is not something you > change like that, it has a deep impact on the all application. Also you > can not reduce it once you used a larger number because it will break > all older record stored in the past. >
Ok > So choosing the number of digits is a programming choice that must be > done and tested by developpers. > > One possible idea could be to use a value in the configuration file but > before having a good design the configuration file must be rework to be > extendable for modules. > So I think that another idea could be using a wizard on install of product model asking the decimals digits for cost price and list price (limited to max 4 digits), so then set the value on singleton model configuration with a readonly field, so the value is visible but not changeable. > -- > Cédric Krier - B2CK SPRL > Email/Jabber: cedric...@b2ck.com <javascript:> > Tel: +32 472 54 46 59 > Website: http://www.b2ck.com/ >