]> git.stg.codes - stg.git/commitdiff
Ticket 37. The WriteString() function call added in the SaveTariff()
authorElena Mamontova <helenh463@gmail.com>
Wed, 25 May 2016 11:28:25 +0000 (14:28 +0300)
committerElena Mamontova <helenh463@gmail.com>
Wed, 25 May 2016 11:28:25 +0000 (14:28 +0300)
function for the 'ChangePolicy' parameter.

projects/stargazer/plugins/store/files/file_store.cpp

index 03a672aa31c62938f05bd660af7de369c3abb5f5..71f570717a208767404b7e6f3e2d98ae9a450f4b 100644 (file)
@@ -1531,6 +1531,7 @@ std::string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
     cf.WriteDouble("Free", td.tariffConf.free);
     cf.WriteString("TraffType", TARIFF::TraffTypeToString(td.tariffConf.traffType));
     cf.WriteString("Period", TARIFF::PeriodToString(td.tariffConf.period));
+    cf.WriteString("ChangePolicy", TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
     }
 
 return 0;