lmi
[Top][All Lists]
Advanced

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

[lmi] Non-proprietary products for testing group quotes [Was: Group-quot


From: Greg Chicares
Subject: [lmi] Non-proprietary products for testing group quotes [Was: Group-quote PDF: whitespace changes, and enhancement]
Date: Wed, 18 Jul 2018 11:55:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 2018-02-08 23:46, Greg Chicares wrote:
>
[...in order to reproduce some behavior discussed in February...]
> 
> You'd need to make "Supplemental amount" (Input::SupplementalSpecifiedAmount)
> nonzero; but apparently you can't do that with the 'sample*' products. Let's
> see...
> 
>   File | Open | sample.database
>     Riders...TermIsNotRider: change from 0 to 1
>     Premiums...SplitMinPrem: change from 0 to 1
>   File | Save
>   File | Close

We need a simple way to test full-blown group quotes (with all potential
columns) without using proprietary products, and that way wasn't simple.
Therefore, I'll commit the patch below soon. I can't do that conveniently
without reverting all the pagination changes, which might require rebuilding
wxWidgets and wxPdfDoc, so I won't do it right now. Meanwhile, it can of
course be applied manually for testing.

---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
diff --git a/dbdict.cpp b/dbdict.cpp
index 49e69fff..89fcaec8 100644
--- a/dbdict.cpp
+++ b/dbdict.cpp
@@ -965,6 +965,12 @@ void DBDictionary::write_database_files()
 
     z.Add(database_entity(DB_LedgerType          , 
mce_individual_private_placement));
     z.WriteDB(AddDataDir("sample2ipp.database"));
+
+    // For group premium quotes.
+    z.Add(database_entity(DB_LedgerType          , mce_ill_reg));
+    z.Add(database_entity(DB_SplitMinPrem        , true));
+    z.Add(database_entity(DB_TermIsNotRider      , true));
+    z.WriteDB(AddDataDir("sample2quo.database"));
 }
 
 /// Initialize the built-in database for the antediluvian branch.
diff --git a/product_data.cpp b/product_data.cpp
index 19d5509c..5f20cb2d 100644
--- a/product_data.cpp
+++ b/product_data.cpp
@@ -435,6 +435,8 @@ void product_data::redintegrate_ex_post
 ///   sample2nasd  mce_nasd
 ///   sample2gpp   mce_group_private_placement
 ///   sample2ipp   mce_individual_private_placement
+/// and one for group premium quotes (with every complexity):
+///   sample2quo   mce_ill_reg
 /// "*Filename" members are names of actual lmi product files, or
 /// basenames of mortality-table databases, and their values must
 /// nominate actual files. Member 'InsCoDomicile' is used to
@@ -573,6 +575,9 @@ void product_data::write_policy_files()
 
     z.save(AddDataDir("sample2naic.policy"));
 
+    z.DatabaseFilename           = glossed_string("sample2quo.database");
+    z.save(AddDataDir("sample2quo.policy"));
+
     z.DatabaseFilename           = glossed_string("sample2nasd.database");
     z.save(AddDataDir("sample2nasd.policy"));
 
--------->8-------->8-------->8-------->8-------->8-------->8-------->8-------



reply via email to

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