From 6cecb2ca7bc6d18d17fa6695e1ca79a4efd0516d Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 3 May 2019 22:15:30 +0200 Subject: [PATCH] Make it possible to enter up to 4 decimal places for price fields (this now closes #225) --- changelog/47_UNRELEASED_xxxx-xx-xx.md | 1 + views/inventory.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog/47_UNRELEASED_xxxx-xx-xx.md b/changelog/47_UNRELEASED_xxxx-xx-xx.md index 981cabcf..696c54e9 100644 --- a/changelog/47_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/47_UNRELEASED_xxxx-xx-xx.md @@ -10,6 +10,7 @@ - It's now possible to have multiple / named shopping lists - Automations still use the default shopping list and also the default shopping list cannot be deleted - More information on the product card like "Spoil rate" or "Average shelf life" + - It's now possible to set a price for added products during inventory - Chores improvements - New recurrence patterns - chores can now also be "scheduled" to repat daily/weekly/monthly - New translations: (thanks all the translators) diff --git a/views/inventory.blade.php b/views/inventory.blade.php index c73796bd..42de3518 100644 --- a/views/inventory.blade.php +++ b/views/inventory.blade.php @@ -49,7 +49,7 @@ 'id' => 'price', 'label' => 'Price', 'min' => 0, - 'step' => 0.01, + 'step' => 0.0001, 'value' => '', 'hint' => $__t('in %s per purchase quantity unit', GROCY_CURRENCY), 'additionalHtmlContextHelp' => '
' . $__t('This will apply to added products') . '',