Files
dolibarr/htdocs/core/class
Joachim Kueter 63f6d0aa43 Fix: Number of decimals for stock values ignores configuration (#31285)
* Fix: Number of decimals for stock values ignores configuration

In the select filed for adding a new line for a proposal/invoice/... product as a line, the stock level is always printed with exactly two decimals.

The number of decimals should be controlled by the existing global variable MAIN_MAX_DECIMALS_STOCK, but it is not taken into account:

Building the stock level with the function price from the function price2num, which uses the configured number of decimals always lead to exactly two decimals.

* Fixed patch according to suggestion.
2024-10-06 13:53:16 +02:00
..
2023-12-04 12:04:36 +01:00
2023-12-21 13:43:19 +01:00
2024-03-03 18:55:10 +01:00
2024-02-20 14:46:56 +01:00
2023-11-27 11:24:19 +01:00
2023-12-04 12:04:36 +01:00
2024-02-25 19:04:05 +01:00
2024-01-29 13:00:33 +01:00
2023-11-27 11:24:19 +01:00
2023-12-04 12:04:36 +01:00
2023-12-21 11:48:00 +01:00
2023-12-22 16:10:14 +01:00
2024-04-04 16:35:21 +02:00
2023-12-10 13:51:14 +01:00
2023-12-27 12:12:20 +01:00
2024-03-29 12:28:55 +01:00
2024-01-03 14:53:31 +01:00
2023-12-04 12:04:36 +01:00
2023-12-27 12:12:20 +01:00
2023-12-19 22:12:29 +01:00
2024-08-27 06:34:08 +02:00
2023-12-27 12:12:20 +01:00
2023-12-06 15:46:39 +01:00
2023-12-04 12:04:36 +01:00
2024-06-22 16:07:46 +02:00
2023-12-04 12:04:36 +01:00
2024-03-26 18:46:28 +01:00
2024-02-25 19:04:05 +01:00
2023-12-13 16:33:17 +01:00