Added an upper limit for stock_decimal_places_* settings (references #2508)

This commit is contained in:
Bernd Bestel
2025-01-17 19:48:14 +01:00
parent 4300da8f64
commit 1daa15a303
3 changed files with 8 additions and 0 deletions

4
migrations/0246.sql Normal file
View File

@@ -0,0 +1,4 @@
UPDATE user_settings
SET value = '10'
WHERE key IN ('stock_decimal_places_amounts', 'stock_decimal_places_prices_input', 'stock_decimal_places_prices_display')
AND CAST(value AS INT) > 10;