]> git.stg.codes - stg.git/commitdiff
Ticket. td->tariffConf.traffType value getting changed in the
authorElena Mamontova <helenh463@gmail.com>
Sun, 17 Jul 2016 17:02:10 +0000 (20:02 +0300)
committerElena Mamontova <helenh463@gmail.com>
Sun, 17 Jul 2016 17:02:10 +0000 (20:02 +0300)
RestoreTariff() function.

projects/stargazer/plugins/store/firebird/firebird_store_tariffs.cpp

index f757d0553896865ebcbda52ea69d484e64c0316b..2a9abf6ef19b36ffa9edbfcf937bb80fe1dbbc77 100644 (file)
@@ -275,7 +275,8 @@ try
     st->Get(3, td->tariffConf.fee);
     st->Get(4, td->tariffConf.free);
     st->Get(5, td->tariffConf.passiveCost);
-    st->Get(6, td->tariffConf.traffType);
+//    st->Get(6, td->tariffConf.traffType);
+    td->tariffConf.traffType = TARIFF::IntToTraffType(Get<int>(st, 6));
     if (schemaVersion > 0)
         {
         std::string period;