From: Elena Mamontova Date: Mon, 28 Nov 2016 13:21:47 +0000 (+0200) Subject: Ticket 37. The stgTime argument added in TariffChangeIsAllowed() X-Git-Tag: 2.409~46 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/120d82b9917bb356bd81ee85f1aa118055ff1f31?hp=e1349c435b3d8183d53204412f6bb6c486ad165a Ticket 37. The stgTime argument added in TariffChangeIsAllowed() function call. --- diff --git a/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp b/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp index 0e7ac9d6..ac6e7261 100644 --- a/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp +++ b/projects/stargazer/plugins/configuration/rpcconfig/user_helper.cpp @@ -437,7 +437,7 @@ if ((it = structVal.find("tariff")) != structVal.end()) 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)