]> git.stg.codes - stg.git/commitdiff
Ticket 37. The policy name added for the DENY value message in the
authorElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 12:37:47 +0000 (15:37 +0300)
committerElena Mamontova <helenh463@gmail.com>
Mon, 8 Aug 2016 12:37:47 +0000 (15:37 +0300)
TariffChangeIsAllowed() function.

projects/stargazer/tariff_impl.cpp

index 61c158e8399185e1a154b334a43be9150fb15eb7..271a1da08036752728c55de665ed8f43f5e55003 100644 (file)
@@ -162,7 +162,7 @@ switch (GetChangePolicy())
         else
             return "Current tariff " + GetName() + " is more expensive than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
     case TARIFF::DENY:
         else
             return "Current tariff " + GetName() + " is more expensive than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
     case TARIFF::DENY:
-        return "Current tariff " + GetName() + ", new tariff " + to.GetName() + ".";
+        return "Current tariff " + GetName() + ", new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
     }
 }
 //-----------------------------------------------------------------------------
     }
 }
 //-----------------------------------------------------------------------------