]> git.stg.codes - stg.git/commitdiff
Added missing threshold value for dirprice data in the tariff.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 20 Oct 2013 15:56:01 +0000 (18:56 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 20 Oct 2013 15:56:01 +0000 (18:56 +0300)
stglibs/srvconf.lib/parsers/chg_tariff.cpp
stglibs/srvconf.lib/parsers/get_tariff.cpp

index 6735e18db8bd76332e26d51d9f46771ca2d14628..cb7d9475b2e8af3100ddc2cb3b463a5bd9dddf76 100644 (file)
@@ -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, "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();
 }
 
 return stream.str();
 }
index 1a3d262c6e932620d2f333d6c773175973a4256e..e861843e3ee1157f750e6fb6dd3f0f3f8835e93c 100644 (file)
@@ -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, "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()
 }
 //-----------------------------------------------------------------------------
 GET_TARIFF::PARSER::~PARSER()