diff --git a/db/changes/233801/00-updateWeight.sql b/db/changes/233801/00-updateWeight.sql index ecedb43299..6f224667d0 100644 --- a/db/changes/233801/00-updateWeight.sql +++ b/db/changes/233801/00-updateWeight.sql @@ -7,7 +7,7 @@ UPDATE `vn`.`item` i AND `size` IS NOT NULL GROUP BY typeFk ) sub ON sub.typeFk = i.typeFk - SET i.`size` = CAST(sub.`size` AS SIGNED) + SET i.`size` = sub.`size` WHERE i.`size` IS NULL; ALTER TABLE `vn`.`item` MODIFY COLUMN `size` int(10) NOT NULL; @@ -22,7 +22,7 @@ UPDATE `vn`.`item` i AND `size` IS NOT NULL GROUP BY typeFk ) sub ON sub.typeFk = i.typeFk - SET i.weightByPiece = CAST(sub.grams * `size` AS SIGNED) + SET i.weightByPiece = sub.grams * `size` WHERE weightByPiece IS NULL OR weightByPiece = 0; diff --git a/modules/item/front/create/index.html b/modules/item/front/create/index.html index 70861a7e4d..bda59129cb 100644 --- a/modules/item/front/create/index.html +++ b/modules/item/front/create/index.html @@ -37,18 +37,6 @@ value-field="priority" vn-name="priority"> - - - - + + + + + +