From cc9b57b85e72f96a92a96c90ca9fbac5040129c3 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Mon, 11 Jul 2016 11:21:45 +0300 Subject: [PATCH 1/1] Ticket 37. The getting changePolicy value from the structVal map and assign value to data.tariffConf.changePolicy added in the SetTariffInfo() function. --- .../plugins/configuration/rpcconfig/tariff_helper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp index 548774de..c96b7d31 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/tariff_helper.cpp @@ -72,6 +72,11 @@ if ((it = structVal.find("period")) != structVal.end()) data.tariffConf.period = TARIFF::StringToPeriod(xmlrpc_c::value_string(it->second)); } +if ((it = structVal.find("changePolicy")) != structVal.end()) + { + data.tariffConf.changePolicy = TARIFF::StringToChangePolicy(xmlrpc_c::value_string(it->second)); + } + if ((it = structVal.find("dirprices")) != structVal.end()) { std::vector prices( -- 2.44.2