]> git.stg.codes - stg.git/commitdiff
Ticket. if(!data.tariffConf.changePolicyTimeout.empty()) construction
authorElena Mamontova <helenh463@gmail.com>
Tue, 1 Nov 2016 13:54:43 +0000 (15:54 +0200)
committerElena Mamontova <helenh463@gmail.com>
Tue, 1 Nov 2016 13:54:43 +0000 (15:54 +0200)
added in the Serialize() function.

stglibs/srvconf.lib/parsers/chg_tariff.cpp

index bdc7f42baf217676f0c0f15d7264eacbaf09f8a5..ca4ceb956d95fa0ef1012d4fd8f3b0fa8be52581 100644 (file)
@@ -78,6 +78,9 @@ if (!data.tariffConf.changePolicy.empty())
         case TARIFF::DENY: stream << "<changePolicy value=\"deny\"/>"; break;
         }
 
+if (!data.tariffConf.changePolicyTimeout.empty())
+    stream << "<changePolicyTimeout value=\"" + formatTime(data.tariffConf.changePolicyTimeout.data()) + "\"/>";
+
 for (size_t i = 0; i < DIR_NUM; ++i)
     if (!data.dirPrice[i].hDay.empty() &&
         !data.dirPrice[i].mDay.empty() &&