]> git.stg.codes - stg.git/commitdiff
Ticket. The stgTime argument added in TariffChangeIsAllowed() function
authorElena Mamontova <helenh463@gmail.com>
Mon, 28 Nov 2016 13:37:29 +0000 (15:37 +0200)
committerElena Mamontova <helenh463@gmail.com>
Mon, 28 Nov 2016 13:37:29 +0000 (15:37 +0200)
call.

projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp

index 0e7ac9d66e13091d8ecf2091a2392400e6f317a0..ac6e72615a95e43ec6da8feacc7fe796be59f042 100644 (file)
@@ -437,7 +437,7 @@ if ((it = structVal.find("tariff")) != structVal.end())
     if (newTariff)
         {
         const TARIFF * currentTariff = ptr->GetTariff();
     if (newTariff)
         {
         const TARIFF * currentTariff = ptr->GetTariff();
-        std::string message = currentTariff->TariffChangeIsAllowed(*newTariff);
+        std::string message = currentTariff->TariffChangeIsAllowed(*newTariff, stgTime);
         if (message.empty())
             {
             if (ptr->GetProperty().tariffName.Get() != tariff)
         if (message.empty())
             {
             if (ptr->GetProperty().tariffName.Get() != tariff)