mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Started working on qu unit conversion handling (references #177)
This commit is contained in:
parent
6094096675
commit
c532a67884
@ -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
|
||||
|
@ -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' => '<p id="qu-conversion-info" class="form-text text-info d-none"></p>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user