Ampliar numero de decimales en precios


Hilo del foro principal donde se esboza una posible solución

Copio el código de ese hilo aquí por si aquello se pierde:

 joeld May 28
Posts: 39
After digging a bit in the code, here is the solution:

Table: vtiger_inventoryproductrel structure change: listprice decimal(25,3) to listprice decimal(25,5)
Table: vtiger_products structure change: unit_price decimal(25,3) to unit_price decimal(25,5)
Table: vtiger_productcurrencyrel structure change: actual_price decimal(25,2) to actual_price decimal(25,5)
Table: vtiger_productcurrencyrel structure change: converted_price decimal(25,2) to converted_price decimal(25,5)

\include\fields\CurrencyField.php @line 40: from $numberOfDecimal = 2; to $numberOfDecimal = 5;
\include\utils\DetailViewUtils.php @line 1257: from $listprice = number_format($listprice, 2,'.',''); to $listprice = number_format($listprice, 5,'.','');
\include\utils\EditViewUtils.php @line 1653: from $listprice = number_format($listprice, 2,'.',''); to $listprice = number_format($listprice, 5,'.','');
\include\ListView\ListViewController.php @line 332: from $value = number_format($value, 2,'.',''); to $value = number_format($value, 5,'.','');

\include\js\Inventory.js @line 300: from if (dec.length>2) to if (dec.length>5)
\include\js\Inventory.js @line 301: from val=val.substring(0,val.indexOf("."))+"."+dec.substring(0,2) to val=val.substring(0,val.indexOf("."))+"."+dec.substring(0,5)
\modules\Products\Products.js @line 165->177 put in remark so that the function has no action at all

Joel