mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +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
|
WHERE from_qu_id = NEW.from_qu_id
|
||||||
AND to_qu_id = NEW.to_qu_id
|
AND to_qu_id = NEW.to_qu_id
|
||||||
AND IFNULL(product_id, 0) = IFNULL(NEW.product_id, 0)
|
AND IFNULL(product_id, 0) = IFNULL(NEW.product_id, 0)
|
||||||
|
AND id != NEW.id
|
||||||
UNION
|
UNION
|
||||||
SELECT 1
|
SELECT 1
|
||||||
FROM products
|
FROM products
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
'id' => 'factor',
|
'id' => 'factor',
|
||||||
'label' => 'Factor',
|
'label' => 'Factor',
|
||||||
'min' => 0,
|
'min' => 0,
|
||||||
'step' => 0.01,
|
'step' => 0.001,
|
||||||
'value' => $value,
|
'value' => $value,
|
||||||
'invalidFeedback' => $__t('The amount cannot be lower than %s and must be a valid number', '0'),
|
'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>',
|
'additionalHtmlElements' => '<p id="qu-conversion-info" class="form-text text-info d-none"></p>',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user