[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_);
- [lmi-commits] [lmi] master updated (24e01a1 -> cd890b4), Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 21d8366 4/8: Assign and use A1_, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 12df365 6/8: Mark some shortcomings to be remediated soon, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 258a675 1/8: Add and use a "length" data member, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 809d1c4 2/8: Add flags to enable or disable i7702 account-paths, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master 6dd530d 3/8: Conditionally override use of loan rates for 7702 interest,
Greg Chicares <=
- [lmi-commits] [lmi] master cd890b4 8/8: Mark old implementation for expunction, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master d59b96b 5/8: Reimplement 7702 interest-rate determination, Greg Chicares, 2021/03/14
- [lmi-commits] [lmi] master cc9b752 7/8: Remove redundant comments, Greg Chicares, 2021/03/14