From 0f9dff59858f013c2817b0f919107be86c06020d Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Sun, 20 Oct 2013 18:56:01 +0300 Subject: [PATCH] Added missing threshold value for dirprice data in the tariff. --- stglibs/srvconf.lib/parsers/chg_tariff.cpp | 1 + stglibs/srvconf.lib/parsers/get_tariff.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/stglibs/srvconf.lib/parsers/chg_tariff.cpp b/stglibs/srvconf.lib/parsers/chg_tariff.cpp index 6735e18d..cb7d9475 100644 --- a/stglibs/srvconf.lib/parsers/chg_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/chg_tariff.cpp @@ -84,6 +84,7 @@ appendSlashedResetable(stream, "priceNightA", data.dirPrice, &DIRPRICE_DATA_RES: appendSlashedResetable(stream, "priceNightB", data.dirPrice, &DIRPRICE_DATA_RES::priceNightB); appendSlashedResetable(stream, "singlePrice", data.dirPrice, &DIRPRICE_DATA_RES::singlePrice); appendSlashedResetable(stream, "noDiscount", data.dirPrice, &DIRPRICE_DATA_RES::noDiscount); +appendSlashedResetable(stream, "threshold", data.dirPrice, &DIRPRICE_DATA_RES::threshold); return stream.str(); } diff --git a/stglibs/srvconf.lib/parsers/get_tariff.cpp b/stglibs/srvconf.lib/parsers/get_tariff.cpp index 1a3d262c..e861843e 100644 --- a/stglibs/srvconf.lib/parsers/get_tariff.cpp +++ b/stglibs/srvconf.lib/parsers/get_tariff.cpp @@ -130,6 +130,7 @@ GET_TARIFF::PARSER::PARSER(CALLBACK f, void * d) AddAOSParser(propertyParsers, "priceNightB", info.dirPrice, &DIRPRICE_DATA::priceNightB, GetSlashedValue); AddAOSParser(propertyParsers, "singlePrice", info.dirPrice, &DIRPRICE_DATA::singlePrice, GetSlashedValue); AddAOSParser(propertyParsers, "noDiscount", info.dirPrice, &DIRPRICE_DATA::noDiscount, GetSlashedValue); + AddAOSParser(propertyParsers, "threshold", info.dirPrice, &DIRPRICE_DATA::threshold, GetSlashedValue); } //----------------------------------------------------------------------------- GET_TARIFF::PARSER::~PARSER() -- 2.43.2