]> git.stg.codes - stg.git/commitdiff
Ticket. The MaybeSet() function call for the 'change-policy' parameter
authorElena Mamontova <helenh463@gmail.com>
Tue, 12 Jul 2016 11:02:39 +0000 (14:02 +0300)
committerElena Mamontova <helenh463@gmail.com>
Tue, 12 Jul 2016 11:02:39 +0000 (14:02 +0300)
added in the ChgTariffFunction().

projects/sgconf/tariffs.cpp

index a604a670a39c36659936044837bd10a90c5b25b3..4d4374f75b5d3366481d29a84104c01833eafb76 100644 (file)
@@ -385,6 +385,7 @@ SGCONF::MaybeSet(options, "free", conf.tariffConf.free);
 SGCONF::MaybeSet(options, "passive-cost", conf.tariffConf.passiveCost);
 SGCONF::MaybeSet(options, "traff-type", conf.tariffConf.traffType, ConvTraffType);
 SGCONF::MaybeSet(options, "period", conf.tariffConf.period, ConvPeriod);
+SGCONF::MaybeSet(options, "change-policy", conf.tariffConf.changePolicy, ConvChangePolicy);
 SGCONF::MaybeSet(options, "times", conf.dirPrice, ConvTimes);
 SGCONF::MaybeSet(options, "day-prices", conf.dirPrice, ConvDayPrices);
 SGCONF::MaybeSet(options, "night-prices", conf.dirPrice, ConvNightPrices);