hotfix
gitea/salix/pipeline/pr-master This commit looks good Details

This commit is contained in:
Pako Natek 2024-09-04 13:37:13 +02:00
parent 93796ef18d
commit e574f0060a
2 changed files with 31 additions and 36 deletions

View File

@ -23,43 +23,36 @@ BEGIN
DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE; DECLARE CONTINUE HANDLER FOR NOT FOUND SET vDone = TRUE;
DELETE tt.* CREATE OR REPLACE TEMPORARY TABLE tmp.sale_problems (
FROM tmp.sale_getProblems tt ticketFk INT(11),
JOIN ticketObservation tto ON tto.ticketFk = tt.ticketFk saleFk INT(11),
JOIN observationType ot ON ot.id = tto.observationTypeFk isFreezed INTEGER(1) DEFAULT 0,
WHERE ot.code = 'administrative' risk DECIMAL(10,1) DEFAULT 0,
AND tto.description = 'Miriam'; hasRisk TINYINT(1) DEFAULT 0,
hasHighRisk TINYINT(1) DEFAULT 0,
hasTicketRequest INTEGER(1) DEFAULT 0,
itemShortage VARCHAR(255),
isTaxDataChecked INTEGER(1) DEFAULT 1,
itemDelay VARCHAR(255),
itemLost VARCHAR(255),
hasComponentLack INTEGER(1),
hasRounding VARCHAR(255),
isTooLittle BOOL DEFAULT FALSE,
isVip BOOL DEFAULT FALSE,
PRIMARY KEY (ticketFk, saleFk)
) ENGINE = MEMORY;
CREATE OR REPLACE TEMPORARY TABLE tmp.sale_problems ( INSERT INTO tmp.sale_problems(ticketFk,
ticketFk INT(11), saleFk,
saleFk INT(11), isFreezed,
isFreezed INTEGER(1) DEFAULT 0, risk,
risk DECIMAL(10,1) DEFAULT 0, hasRisk,
hasRisk TINYINT(1) DEFAULT 0, hasHighRisk,
hasHighRisk TINYINT(1) DEFAULT 0, hasTicketRequest,
hasTicketRequest INTEGER(1) DEFAULT 0, isTaxDataChecked,
itemShortage VARCHAR(255), hasComponentLack,
isTaxDataChecked INTEGER(1) DEFAULT 1, hasRounding,
itemDelay VARCHAR(255), isTooLittle)
itemLost VARCHAR(255),
hasComponentLack INTEGER(1),
hasRounding VARCHAR(255),
isTooLittle BOOL DEFAULT FALSE,
isVip BOOL DEFAULT FALSE,
PRIMARY KEY (ticketFk, saleFk)
) ENGINE = MEMORY;
INSERT INTO tmp.sale_problems(ticketFk,
saleFk,
isFreezed,
risk,
hasRisk,
hasHighRisk,
hasTicketRequest,
isTaxDataChecked,
hasComponentLack,
hasRounding,
isTooLittle)
SELECT sgp.ticketFk, SELECT sgp.ticketFk,
s.id, s.id,
IF(FIND_IN_SET('isFreezed', t.problem), TRUE, FALSE) isFreezed, IF(FIND_IN_SET('isFreezed', t.problem), TRUE, FALSE) isFreezed,

View File

@ -0,0 +1,2 @@
-- Place your SQL code here
ALTER TABLE dipole.expedition_PrintOut MODIFY COLUMN isPrinted int(11) DEFAULT 0 NOT NULL COMMENT '0.- Not Printed ; 1.- Printed; 2.- Selected ; 3.- Error ; 4.- Waiting to be printed';