]> git.stg.codes - stg.git/commitdiff
Ticket 37. The WriteTime() function call for the 'changePolicyTimeout'
authorElena Mamontova <helenh463@gmail.com>
Tue, 20 Sep 2016 15:16:29 +0000 (18:16 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 20 Sep 2016 15:16:29 +0000 (18:16 +0300)
added in the SaveTariff() function.

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

index 0c48722c2096d7605692937a5011bba4a2fb3bc3..51c3707910c34bbd3bf087c638c341f5060fd5f0 100644 (file)
@@ -1540,6 +1540,7 @@ std::string fileName = storeSettings.GetTariffsDir() + "/" + tariffName + ".tf";
     cf.WriteString("TraffType", TARIFF::TraffTypeToString(td.tariffConf.traffType));
     cf.WriteString("Period", TARIFF::PeriodToString(td.tariffConf.period));
     cf.WriteString("ChangePolicy", TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
     cf.WriteString("TraffType", TARIFF::TraffTypeToString(td.tariffConf.traffType));
     cf.WriteString("Period", TARIFF::PeriodToString(td.tariffConf.period));
     cf.WriteString("ChangePolicy", TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
+    cf.WriteTime("ChangePolicyTimeout", td.tariffConf.changePolicyTimeout);
     }
 
 return 0;
     }
 
 return 0;