2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-08-20 08:06:10 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`itemShelving_afterUpdate`
|
2024-01-15 11:31:03 +00:00
|
|
|
AFTER UPDATE ON `itemShelving`
|
|
|
|
FOR EACH ROW
|
2024-04-03 05:04:12 +00:00
|
|
|
BEGIN
|
|
|
|
INSERT INTO itemShelvingLog
|
2024-01-15 11:31:03 +00:00
|
|
|
SET itemShelvingFk = NEW.id,
|
|
|
|
workerFk = account.myUser_getId(),
|
|
|
|
accion = 'CAMBIO',
|
|
|
|
itemFk = NEW.itemFk,
|
|
|
|
shelvingFk = NEW.shelvingFk,
|
|
|
|
visible = NEW.visible,
|
|
|
|
`grouping` = NEW.`grouping`,
|
2024-04-03 05:04:12 +00:00
|
|
|
packing = NEW.packing,
|
|
|
|
available = NEW.available;
|
|
|
|
|
|
|
|
END$$
|
2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER ;
|