From: Elena Mamontova Date: Wed, 13 Jul 2016 07:19:39 +0000 (+0300) Subject: Ticket. if (!data.tariffConf.changePolicy.empty()) construction added in X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/0df921108f5a3240db63336eddd3ab46bf80f424 Ticket. if (!data.tariffConf.changePolicy.empty()) construction added in the Serialize() function. --- 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() &&