2024-01-15 11:31:03 +00:00
|
|
|
DELIMITER $$
|
2024-07-22 09:52:42 +00:00
|
|
|
CREATE OR REPLACE DEFINER=`vn-admin`@`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 ;
|