From 96b86c230c79355ea10a1b271c42c5b4fdd3362f Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 13 Nov 2020 17:45:09 +0100 Subject: [PATCH] Use sensible decimal amounts --- changelog/60_UNRELEASED_2020-xx-xx.md | 2 +- config-dist.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog/60_UNRELEASED_2020-xx-xx.md b/changelog/60_UNRELEASED_2020-xx-xx.md index ca8d6e4a..b58175b9 100644 --- a/changelog/60_UNRELEASED_2020-xx-xx.md +++ b/changelog/60_UNRELEASED_2020-xx-xx.md @@ -40,7 +40,7 @@ _- (Because the stock quantity unit is now the base for everything, it cannot be - For products with tare weight handling enabled, it's now optionally possible to consume a fixed/exact amount (just like for "normal" products) in case you don't want to weigh the whole container this time (new checkbox on the consume page) (thanks @fipwmaqzufheoxq92ebc) - The stock overview page now also shows the value - new column and also the total value in the header (thanks @kriddles) - It's now possible to set a custom purchased date on purchase (new field on the purchase and inventory page, hidden by default - enable it by a new stock setting (top right corner settings menu)) (thanks @kriddles) -- The decimal places for all amount and price inputs can now be configured (stock settings / top right corner settings menu, both default to `4`) +- The decimal places for all amount and price inputs can now be configured (stock settings / top right corner settings menu, default for amounts is `4`, for prices `2`) - When clicking the product name on the shopping list, the product card will now be displayed (like on the stock overview page) (thanks @kriddles) - On the product card there is now also a button to jump directly to the stock entries of the corresponding product (thanks @kriddles) - The product picker workflows can now also be started by `ENTER` (additionally to `TAB`) diff --git a/config-dist.php b/config-dist.php index 425ef9f7..1c5f0c32 100644 --- a/config-dist.php +++ b/config-dist.php @@ -112,7 +112,7 @@ DefaultUserSetting('product_presets_location_id', -1); // Default location id fo DefaultUserSetting('product_presets_product_group_id', -1); // Default product group id for new products (-1 means no product group is preset) DefaultUserSetting('product_presets_qu_id', -1); // Default quantity unit id for new products (-1 means no quantity unit is preset) DefaultUserSetting('stock_decimal_places_amounts', 4); // Default decimal places allowed for amounts -DefaultUserSetting('stock_decimal_places_prices', 4); // Default decimal places allowed for prices +DefaultUserSetting('stock_decimal_places_prices', 2); // Default decimal places allowed for prices DefaultUserSetting('stock_expiring_soon_days', 5); DefaultUserSetting('stock_default_purchase_amount', 0); DefaultUserSetting('stock_default_consume_amount', 1);