[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master bb0eb2c 7/9: Favor problem-domain terminology
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master bb0eb2c 7/9: Favor problem-domain terminology |
Date: |
Thu, 27 Sep 2018 12:53:51 -0400 (EDT) |
branch: master
commit bb0eb2caf1bc9d63d22715be02e0e6af70429aea
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Favor problem-domain terminology
---
finra_header_lower.mst | 4 ++--
ledger_evaluator.cpp | 10 +++-------
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/finra_header_lower.mst b/finra_header_lower.mst
index d5aa394..eddc939 100644
--- a/finra_header_lower.mst
+++ b/finra_header_lower.mst
@@ -59,8 +59,8 @@
</td>
<td width="40%">
Assumed Premium Allocation:**<br>
- Separate Account:
{{GenAcctAllocationComplementPercent}}<br>
- Guaranteed Principal Account (GPA):
{{GenAcctAllocationPercent}}<br>
+ Separate Account: {{SepAcctAllocation}}<br>
+ Guaranteed Principal Account (GPA):
{{GenAcctAllocation}}<br>
Initial
{{#HasTermOrSupplSpecAmt}}
Total
diff --git a/ledger_evaluator.cpp b/ledger_evaluator.cpp
index df54e37..4c580fe 100644
--- a/ledger_evaluator.cpp
+++ b/ledger_evaluator.cpp
@@ -483,8 +483,6 @@ ledger_evaluator Ledger::make_evaluator() const
format_map["SalesLoadRefundRate0" ] = f3;
format_map["SalesLoadRefundRate1" ] = f3;
format_map["GenAcctAllocation" ] = f3;
- format_map["GenAcctAllocationPercent" ] = f3;
- format_map["GenAcctAllocationComplementPercent"] = f3;
// >
// F2: two decimals, commas
@@ -855,11 +853,9 @@ ledger_evaluator Ledger::make_evaluator() const
scalars["SalesLoadRefundRate0"] = &SalesLoadRefundRate0;
scalars["SalesLoadRefundRate1"] = &SalesLoadRefundRate1;
- double GenAcctAllocation = ledger_invariant_->GenAcctAllocation;
- double GenAcctAllocationComplement = 1.0 - GenAcctAllocation;
-
- scalars["GenAcctAllocationPercent" ] = &GenAcctAllocation;
- scalars["GenAcctAllocationComplementPercent"] =
&GenAcctAllocationComplement;
+ double SepAcctAllocation = 1.0 - ledger_invariant_->GenAcctAllocation;
+ scalars ["SepAcctAllocation"] = &SepAcctAllocation;
+ format_map["SepAcctAllocation"] = f3;
std::string ScaleUnit = ledger_invariant_->ScaleUnit();
strings["ScaleUnit"] = &ScaleUnit;
- [lmi-commits] [lmi] master updated (ea25cc6 -> 058e112), Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 7d7cd0d 4/9: Adjust whitespace for vertical alignment, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 3d75aa3 2/9: Rearrange headers, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 429acb9 1/9: Add missing 'pyx="values_tsv"' support, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 58b0c04 3/9: Sort columns alphabetically in TSV output, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 0593224 5/9: Reorder statements more logically, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master bb0eb2c 7/9: Favor problem-domain terminology,
Greg Chicares <=
- [lmi-commits] [lmi] master 16da526 6/9: Change the format of 'GenAcctAllocation', Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 058e112 9/9: Assert a formerly implicit assumption, Greg Chicares, 2018/09/27
- [lmi-commits] [lmi] master 957fb26 8/9: Favor problem-domain terminology, Greg Chicares, 2018/09/27