lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 6dd530d 3/8: Conditionally override use of lo


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6dd530d 3/8: Conditionally override use of loan rates for 7702 interest
Date: Sun, 14 Mar 2021 16:03:30 -0400 (EDT)

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

    Conditionally override use of loan rates for 7702 interest
---
 i7702.cpp | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/i7702.cpp b/i7702.cpp
index bbc0e7e..a398e25 100644
--- a/i7702.cpp
+++ b/i7702.cpp
@@ -278,11 +278,19 @@ i7702::i7702
     ,net_glp_  (length_)
     ,net_gsp_  (length_)
 {
+    std::vector<double> const zero(length_);
+
     database.query_into(DB_AllowGenAcct  , use_gen_);
     database.query_into(DB_AllowSepAcct  , use_sep_);
     database.query_into(DB_AllowFixedLoan, use_flr_);
     database.query_into(DB_AllowVlr      , use_vlr_);
 
+    if(database.query<bool>(DB_IgnoreLoanRateFor7702))
+        {
+        use_flr_ = zero;
+        use_vlr_ = zero;
+        }
+
     // Monthly guar net int for 7702 is
     //   greater of {iglp(), igsp()} and annual guar int rate
     //   less AV load
@@ -346,7 +354,6 @@ i7702::i7702
     //
     // For 7702, 'ig' should generally equal Eckley's 'ic'.
 
-    std::vector<double> const zero(length_);
     database.query_into(DB_NaarDiscount, Em_);
     bool const no_naar_discount = zero == Em_;
     std::vector<double> theoretical_naar_discount(length_);



reply via email to

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