From c532a678845eeebb971396245f27ea78ee31e098 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sun, 15 Sep 2019 17:06:52 +0200 Subject: [PATCH] Started working on qu unit conversion handling (references #177) --- migrations/0082.sql | 1 + views/quantityunitconversionform.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/0082.sql b/migrations/0082.sql index 9720667d..95a467b1 100644 --- a/migrations/0082.sql +++ b/migrations/0082.sql @@ -35,6 +35,7 @@ SELECT CASE WHEN(( WHERE from_qu_id = NEW.from_qu_id AND to_qu_id = NEW.to_qu_id AND IFNULL(product_id, 0) = IFNULL(NEW.product_id, 0) + AND id != NEW.id UNION SELECT 1 FROM products diff --git a/views/quantityunitconversionform.blade.php b/views/quantityunitconversionform.blade.php index e316d163..281dfe52 100644 --- a/views/quantityunitconversionform.blade.php +++ b/views/quantityunitconversionform.blade.php @@ -58,7 +58,7 @@ 'id' => 'factor', 'label' => 'Factor', 'min' => 0, - 'step' => 0.01, + 'step' => 0.001, 'value' => $value, 'invalidFeedback' => $__t('The amount cannot be lower than %s and must be a valid number', '0'), 'additionalHtmlElements' => '

',