Merge pull request 'test' (!2319) from test into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2319 Reviewed-by: Carlos Andrés <carlosap@verdnatura.es>
This commit is contained in:
commit
eee7062e3f
|
@ -3,13 +3,13 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` TRIGGER `vn`.`accountReconciliation
|
||||||
BEFORE INSERT ON `accountReconciliation`
|
BEFORE INSERT ON `accountReconciliation`
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
|
|
||||||
SET NEW.calculatedCode = REPLACE(
|
SET NEW.calculatedCode = REGEXP_REPLACE(
|
||||||
REPLACE(
|
CONCAT(NEW.supplierAccountFk,
|
||||||
REPLACE(
|
NEW.operationDated,
|
||||||
REPLACE(
|
NEW.amount,
|
||||||
CONCAT(NEW.supplierAccountFk,NEW.operationDated,NEW.amount,NEW.concept,NEW.debitCredit)
|
NEW.concept,
|
||||||
,' ','')
|
CAST(NEW.debitCredit AS UNSIGNED)
|
||||||
,":",'')
|
),
|
||||||
,'-','')
|
'[ :\\-.]', ''
|
||||||
,'.','')$$
|
)$$
|
||||||
DELIMITER ;
|
DELIMITER ;
|
|
@ -2,6 +2,7 @@ CREATE OR REPLACE DEFINER=`root`@`localhost`
|
||||||
SQL SECURITY DEFINER
|
SQL SECURITY DEFINER
|
||||||
VIEW `vn2008`.`gastos_resumen`
|
VIEW `vn2008`.`gastos_resumen`
|
||||||
AS SELECT
|
AS SELECT
|
||||||
|
`es`.`id` AS `id`,
|
||||||
`es`.`expenseFk` AS `Id_Gasto`,
|
`es`.`expenseFk` AS `Id_Gasto`,
|
||||||
`es`.`year` AS `year`,
|
`es`.`year` AS `year`,
|
||||||
`es`.`month` AS `month`,
|
`es`.`month` AS `month`,
|
||||||
|
|
Loading…
Reference in New Issue