2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-04-08 07:54:23 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`itemShelving_afterInsert`
|
2024-01-15 11:31:03 +00:00
|
|
|
AFTER INSERT ON `itemShelving`
|
|
|
|
FOR EACH ROW
|
2024-04-03 05:04:12 +00:00
|
|
|
BEGIN
|
|
|
|
|
|
|
|
INSERT INTO vn.itemShelvingLog(
|
|
|
|
itemShelvingFk,
|
|
|
|
workerFk,
|
|
|
|
accion,
|
|
|
|
itemFk,
|
|
|
|
shelvingFk,
|
|
|
|
visible,
|
|
|
|
`grouping`,
|
|
|
|
packing,
|
|
|
|
available)
|
|
|
|
VALUES( NEW.id,
|
2024-01-15 11:31:03 +00:00
|
|
|
NEW.userFk,
|
|
|
|
'CREA REGISTRO',
|
|
|
|
NEW.itemFk,
|
|
|
|
NEW.shelvingFk,
|
|
|
|
NEW.visible,
|
|
|
|
NEW.`grouping`,
|
2024-04-03 05:04:12 +00:00
|
|
|
NEW.packing,
|
|
|
|
NEW.available);
|
|
|
|
END$$
|
|
|
|
DELIMITER ;
|