From 572a09f704bf0aae7d52bde90674277a40c8ea68 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 7 Mar 2024 09:55:29 +0100 Subject: [PATCH] fix: refs #6995 restore vn.exchangeInsuranceInPrevious --- db/routines/vn/views/exchangeInsuranceInPrevious.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/routines/vn/views/exchangeInsuranceInPrevious.sql diff --git a/db/routines/vn/views/exchangeInsuranceInPrevious.sql b/db/routines/vn/views/exchangeInsuranceInPrevious.sql new file mode 100644 index 000000000..097728bc7 --- /dev/null +++ b/db/routines/vn/views/exchangeInsuranceInPrevious.sql @@ -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'