On 12/12/13 11:48 -0800, oscar_alvarez wrote: > > 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.
No it is wrong to store in database, the schema definition of the fields. Moreover it will be a performence killer. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpbhr1jVJTm5.pgp
Description: PGP signature