]> git.stg.codes - stg.git/commitdiff
Ticket 37. TariffChangelsAllowed function name changed to
authorElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 06:48:57 +0000 (09:48 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 06:48:57 +0000 (09:48 +0300)
TariffChangeIsAllowed in the ProcessNewMonth() function.

projects/stargazer/user_impl.cpp

index 72a3378f771876873f39aab1caf8ea408efde56b..7701bde3fa3b8bf09b463223c2f7ac306ca259ef 100644 (file)
@@ -1184,13 +1184,13 @@ if (nextTariff.ConstData() != "")
         }
     else
         {
         }
     else
         {
-        if (tariff->TariffChangelsAllowed(*nt) == "")
+        if (tariff->TariffChangeIsAllowed(*nt) == "")
             {
             property.tariffName.Set(nextTariff, sysAdmin, login, store);
             }
         else
             {
             {
             property.tariffName.Set(nextTariff, sysAdmin, login, store);
             }
         else
             {
-            std::string message = tariff->TariffChangelsAllowed(*nt);
+            std::string message = tariff->TariffChangeIsAllowed(*nt);
             WriteServLog("Tariff change is prohibited for user %s. %s",
                          login.c_str(),
                          message.c_str());
             WriteServLog("Tariff change is prohibited for user %s. %s",
                          login.c_str(),
                          message.c_str());