CoreBOSBB
Product quantity precision bug? - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: User Support (https://discussions.corebos.org/forumdisplay.php?fid=6)
+--- Thread: Product quantity precision bug? (/showthread.php?tid=1699)



Product quantity precision bug? - addady2 - 02-02-2020

Hi,

Editing existing Invoice round product quantity to 2 digit.

Step to reproduce  in the demo:

1. Create new invoice with one item. set quantity to 1.123
2. Save the invoice
3. View the invoice, Every thing fine the quantity to 1.123
4. Edit the invoice, quantity now is 1.12 !!!!
5. Save the invoice
6. View the invoice, quantity to 1.12  

Not suppose to be related: The Number Of Currency Decimals for admin user in codebos demo it set to 4.


RE: Product quantity precision bug? - joebordes - 02-02-2020

Quantity is not a currency field and is limited to 2 decimals (three actually as per the database but only two are shown on screen).

This has always been like this, even in vtiger CRM.

What would you propose?


RE: Product quantity precision bug? - addady2 - 02-03-2020

(02-02-2020, 11:37 PM)joebordes Wrote: Quantity is not a currency field and is limited to 2 decimals (three actually as per the database but only two are shown on screen).

This has always been like this, even in vtiger CRM.

What would you propose?

I need 3 digits in the display.

How this modification:
https://github.com/tsolucio/corebos/commit/8b0b9c873ebd3d9f7fa8cefb03c6831a85a9d485
related to the issue?

Please give me some direction where to change it the code.

Thank you


RE: Product quantity precision bug? - joebordes - 02-19-2020

https://github.com/tsolucio/corebos/commit/61f8d62cf720614784065b421629c94c99e05e78

quantity now uses the current user decimal setting but you can also force it to another amount with the Inventory_Quantity_Precision global variable


RE: Product quantity precision bug? - addady2 - 02-20-2020

Thank you