feat: refs #8535 sistema de warnings #3418

Merged
guillermo merged 3 commits from 8535-log-mandate into master 2025-02-06 11:18:59 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 9b2c0f1c48 - Show all commits

View File

@ -3,12 +3,12 @@ CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`mandate_beforeInsert`
BEFORE INSERT ON `mandate`
FOR EACH ROW
BEGIN
SET NEW.editorFk = account.myUser_getId();
IF (NEW.code IS NULL) THEN
SET NEW.code=CONCAT(NEW.clientFk,'-',(SELECT AUTO_INCREMENT
FROM information_schema.TABLES
WHERE TABLE_SCHEMA='vn' and TABLE_NAME='mandate'));
END IF;
carlosap marked this conversation as resolved
Review

Normalment solem ficar aço dalt, pero vaya que si vols no cal que ho canvies, es una tonteria

Normalment solem ficar aço dalt, pero vaya que si vols no cal que ho canvies, es una tonteria
SET NEW.editorFk = account.myUser_getId();
END$$
DELIMITER ;