]> git.stg.codes - stg.git/commitdiff
Ticket. Fixed enumeration values.
authorElena Mamontova <helenh463@gmail.com>
Thu, 21 Jul 2016 13:08:31 +0000 (16:08 +0300)
committerElena Mamontova <helenh463@gmail.com>
Thu, 21 Jul 2016 13:08:31 +0000 (16:08 +0300)
stglibs/srvconf.lib/parsers/chg_tariff.cpp

index 5c6fd720128587cc60577af8d0c5f676481c462d..bdc7f42baf217676f0c0f15d7264eacbaf09f8a5 100644 (file)
@@ -72,10 +72,10 @@ if (!data.tariffConf.period.empty())
 if (!data.tariffConf.changePolicy.empty())
     switch (data.tariffConf.changePolicy.data())
         {
 if (!data.tariffConf.changePolicy.empty())
     switch (data.tariffConf.changePolicy.data())
         {
-        case TARIFF::DAY: stream << "<changePolicy value=\"allow\"/>"; break;
-        case TARIFF::MONTH: stream << "<changePolicy value=\"to_cheap\"/>"; break;
-        case TARIFF::MONTH: stream << "<changePolicy value=\"to_expensive\"/>"; break;
-        case TARIFF::MONTH: stream << "<changePolicy value=\"deny\"/>"; break;
+        case TARIFF::ALLOW: stream << "<changePolicy value=\"allow\"/>"; break;
+        case TARIFF::TO_CHEAP: stream << "<changePolicy value=\"to_cheap\"/>"; break;
+        case TARIFF::TO_EXPENSIVE: stream << "<changePolicy value=\"to_expensive\"/>"; break;
+        case TARIFF::DENY: stream << "<changePolicy value=\"deny\"/>"; break;
         }
 
 for (size_t i = 0; i < DIR_NUM; ++i)
         }
 
 for (size_t i = 0; i < DIR_NUM; ++i)