Merge pull request 'fix: refs #6995 restore vn.exchangeInsuranceInPrevious' (!2144) from 6995-hotFix_restoreExchangeInsuranceInPrevious into master
gitea/salix/pipeline/head There was a failure building this commit Details

Reviewed-on: #2144
Reviewed-by: Robert Ferrús <robert@verdnatura.es>
This commit is contained in:
Alex Moreno 2024-03-07 08:57:41 +00:00
commit 06e4477a52
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `vn`.`exchangeInsuranceInPrevious`
AS SELECT `ei`.`finished` AS `dated`,
`ei`.`amount` AS `amount`,
`ei`.`rate` AS `rate`
FROM `vn`.`exchangeInsurance` `ei`
WHERE `ei`.`amount` <> 0
AND `ei`.`financialProductTypefk` = 'SC'