From 0df921108f5a3240db63336eddd3ab46bf80f424 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 13 Jul 2016 10:19:39 +0300 Subject: [PATCH] Ticket. if (!data.tariffConf.changePolicy.empty()) construction added in the Serialize() function. --- stglibs/srvconf.lib/parsers/chg_tariff.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stglibs/srvconf.lib/parsers/chg_tariff.cpp b/stglibs/srvconf.lib/parsers/chg_tariff.cpp index 158e6f89..5c6fd720 100644 --- a/stglibs/srvconf.lib/parsers/chg_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/chg_tariff.cpp @@ -69,6 +69,15 @@ if (!data.tariffConf.period.empty()) case TARIFF::MONTH: stream << ""; break; } +if (!data.tariffConf.changePolicy.empty()) + switch (data.tariffConf.changePolicy.data()) + { + case TARIFF::DAY: stream << ""; break; + case TARIFF::MONTH: stream << ""; break; + case TARIFF::MONTH: stream << ""; break; + case TARIFF::MONTH: stream << ""; break; + } + for (size_t i = 0; i < DIR_NUM; ++i) if (!data.dirPrice[i].hDay.empty() && !data.dirPrice[i].mDay.empty() && -- 2.44.2