lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 1596fd9 4/4: Implement database entity 'DB_Om


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1596fd9 4/4: Implement database entity 'DB_OmitGuarPremSolve'
Date: Tue, 13 Jul 2021 14:21:53 -0400 (EDT)

branch: master
commit 1596fd9c5a641e19fbeadd36530aeb54197001bc
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Implement database entity 'DB_OmitGuarPremSolve'
---
 ihs_acctval.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 16d8695..eca925e 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -265,7 +265,11 @@ Then run other bases.
 void AccountValue::SetGuarPrem()
 {
     GuarPremium = C0;
-    if(BasicValues::IsSubjectToIllustrationReg() && 0 == InforceYear)
+    if
+        (  BasicValues::IsSubjectToIllustrationReg()
+        && 0 == InforceYear
+        && !database().query<bool>(DB_OmitGuarPremSolve)
+        )
         {
         GuarPremium = SolveGuarPremium();
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]