change policy name in TariffChangeIsAllowed() function.
if (to.GetFee() < GetFee())
return "";
else
if (to.GetFee() < GetFee())
return "";
else
- return "Current tariff " + GetName() + " is more cheap than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
+ return "Current tariff '" + GetName() + "' is more cheap than new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'.";
case TARIFF::TO_EXPENSIVE:
if (to.GetFee() > GetFee())
return "";
else
case TARIFF::TO_EXPENSIVE:
if (to.GetFee() > GetFee())
return "";
else
- return "Current tariff " + GetName() + " is more expensive than new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
+ return "Current tariff '" + GetName() + "' is more expensive than new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'.";
- return "Current tariff " + GetName() + ", new tariff " + to.GetName() + ". The policy is " + TARIFF::ChangePolicyToString(GetChangePolicy()) + ".";
+ return "Current tariff '" + GetName() + "', new tariff '" + to.GetName() + "'. The policy is '" + TARIFF::ChangePolicyToString(GetChangePolicy()) + "'.";
}
}
//-----------------------------------------------------------------------------
}
}
//-----------------------------------------------------------------------------