7430_devToTest #2490

Merged
alexm merged 306 commits from 7430_devToTest into test 2024-05-21 09:15:04 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 7bbf113ffa - Show all commits

View File

@ -1,5 +1,5 @@
DELIMITER $$
CREATE OR REPLACE FUNCTION vn.sale_hasComponentLack(vSelf INT)
CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `vn`.`sale_hasComponentLack`(vSelf INT)
RETURNS tinyint(1)
READS SQL DATA
BEGIN
@ -12,7 +12,7 @@ BEGIN
WITH componentRequired AS(
SELECT COUNT(*)total
FROM component
FROM vn.component
WHERE isRequired
)SELECT SUM(IF(c.isRequired, TRUE, FALSE)) <> cr.total INTO vHasComponentLack
FROM vn.sale s