salix/db/routines/vn/triggers/accountReconciliation_befor...

15 lines
370 B
MySQL
Raw Normal View History

2024-01-30 06:48:29 +00:00
DELIMITER $$
2024-08-20 08:06:10 +00:00
CREATE OR REPLACE DEFINER=`vn`@`localhost` TRIGGER `vn`.`accountReconciliation_beforeInsert`
2024-01-30 06:48:29 +00:00
BEFORE INSERT ON `accountReconciliation`
FOR EACH ROW
2024-04-17 14:43:17 +00:00
SET NEW.calculatedCode = REGEXP_REPLACE(
CONCAT(NEW.supplierAccountFk,
NEW.operationDated,
NEW.amount,
NEW.concept,
CAST(NEW.debitCredit AS UNSIGNED)
),
'[ :\\-.]', ''
)$$
DELIMITER ;