fix: refs #6995 restore vn.exchangeInsuranceInPrevious #2144

Merged
alexm merged 1 commits from 6995-hotFix_restoreExchangeInsuranceInPrevious into master 2024-03-07 08:57:42 +00:00
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'