[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master b72c0eb 09/13: Make agent's Id and phone numb
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master b72c0eb 09/13: Make agent's Id and phone number available for reports |
Date: |
Sat, 15 Jun 2019 20:25:37 -0400 (EDT) |
branch: master
commit b72c0eb4fee52087ae301586c514156eb746af2d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Make agent's Id and phone number available for reports
Some states require these on illustrations.
---
ledger_invariant.cpp | 4 ++++
ledger_invariant.hpp | 2 ++
ledger_invariant_init.cpp | 3 +++
yare_input.cpp | 2 ++
yare_input.hpp | 4 ++--
5 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/ledger_invariant.cpp b/ledger_invariant.cpp
index c382174..f156f02 100644
--- a/ledger_invariant.cpp
+++ b/ledger_invariant.cpp
@@ -310,6 +310,8 @@ void LedgerInvariant::Alloc(int len)
Strings["ProducerName" ] = &ProducerName
;
Strings["ProducerStreet" ] = &ProducerStreet
;
Strings["ProducerCityEtc" ] = &ProducerCityEtc
;
+ Strings["ProducerPhone" ] = &ProducerPhone
;
+ Strings["ProducerId" ] = &ProducerId
;
Strings["CorpName" ] = &CorpName
;
Strings["MasterContractNumber" ] = &MasterContractNumber
;
Strings["ContractNumber" ] = &ContractNumber
;
@@ -528,6 +530,8 @@ LedgerInvariant& LedgerInvariant::PlusEq(LedgerInvariant
const& a_Addend)
ProducerName = a_Addend.ProducerName;
ProducerStreet = a_Addend.ProducerStreet;
ProducerCityEtc = a_Addend.ProducerCityEtc;
+ ProducerPhone = a_Addend.ProducerPhone;
+ ProducerId = a_Addend.ProducerId;
// This would necessarily vary by life:
// ContractNumber = "";
diff --git a/ledger_invariant.hpp b/ledger_invariant.hpp
index 5377841..83f506d 100644
--- a/ledger_invariant.hpp
+++ b/ledger_invariant.hpp
@@ -348,6 +348,8 @@ class LMI_SO LedgerInvariant final
std::string ProducerName;
std::string ProducerStreet;
std::string ProducerCityEtc;
+ std::string ProducerPhone;
+ std::string ProducerId;
std::string CorpName;
std::string MasterContractNumber;
std::string ContractNumber;
diff --git a/ledger_invariant_init.cpp b/ledger_invariant_init.cpp
index 65643b4..f2955e5 100644
--- a/ledger_invariant_init.cpp
+++ b/ledger_invariant_init.cpp
@@ -439,6 +439,9 @@ void LedgerInvariant::Init(BasicValues const* b)
ProducerStreet = b->yare_input_.AgentAddress;
ProducerCityEtc = agent_city_etc;
+ ProducerPhone = b->yare_input_.AgentPhone;
+ ProducerId = b->yare_input_.AgentId;
+
CorpName = b->yare_input_.CorporationName;
MasterContractNumber = b->yare_input_.MasterContractNumber;
diff --git a/yare_input.cpp b/yare_input.cpp
index 806d001..f3c00c5 100644
--- a/yare_input.cpp
+++ b/yare_input.cpp
@@ -86,6 +86,8 @@ yare_input::yare_input(Input const& z)
AgentCity = z.AgentCity
.value();
AgentState = z.AgentState
.value();
AgentZipCode = z.AgentZipCode
.value();
+ AgentPhone = z.AgentPhone
.value();
+ AgentId = z.AgentId
.value();
InsuredPremiumTableFactor = z.InsuredPremiumTableFactor
.value();
CorporationPremiumTableFactor = z.CorporationPremiumTableFactor
.value();
EffectiveDate = z.EffectiveDate
.value();
diff --git a/yare_input.hpp b/yare_input.hpp
index 105631e..e38000a 100644
--- a/yare_input.hpp
+++ b/yare_input.hpp
@@ -123,8 +123,8 @@ class yare_input final
std::string AgentCity ;
mcenum_state AgentState ;
std::string AgentZipCode ;
-// std::string AgentPhone ;
-// std::string AgentId ;
+ std::string AgentPhone ;
+ std::string AgentId ;
// mcenum_premium_table InsuredPremiumTableNumber ;
double InsuredPremiumTableFactor ;
// mcenum_premium_table CorporationPremiumTableNumber ;
- [lmi-commits] [lmi] master db9783b 01/13: Document some ideas for future improvements, (continued)
- [lmi-commits] [lmi] master db9783b 01/13: Document some ideas for future improvements, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 2f9030d 04/13: Improve documentation, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master cf0c022 02/13: Add conditional debugging code, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 5fcaa33 05/13: Move a line; add a comment, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 1fa08b4 08/13: Make 'AgentPhone' a "required" input field, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master d08aabe 10/13: Reapply "Move imprimaturs; rearrange footer", Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 6170caf 12/13: Add agent Id and phone to cover page, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 48ffe2c 03/13: Optionally get 7702 q from built-in table, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master 0ea441a 07/13: Verify both DB_Irc7702QWhence cases, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master d07c63a 06/13: Conditionalize a block, Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master b72c0eb 09/13: Make agent's Id and phone number available for reports,
Greg Chicares <=
- [lmi-commits] [lmi] master 38ce843 11/13: Simplify formatting of 'imprimatur', Greg Chicares, 2019/06/15
- [lmi-commits] [lmi] master e019e5b 13/13: Rework some finra MST files, Greg Chicares, 2019/06/15