Elena Mamontova [Tue, 20 Dec 2016 13:31:06 +0000 (15:31 +0200)]
Ticket 37. In the if() construction for the changePolicyTimeout
ReadTime() changed to ReadString(), else construction added, error
message remowed in RestoreTariff().
Elena Mamontova [Wed, 30 Nov 2016 14:17:21 +0000 (16:17 +0200)]
Ticket 37. test<11>, test<12>, test<13> added. Current time argument
added in the TariffChangeIsAllowed() function in test<7>, test<8>,
test<9>, test<10>.
Elena Mamontova [Mon, 28 Nov 2016 13:12:12 +0000 (15:12 +0200)]
Ticket 37. The time_t currentTime parameter added in
TariffChangeIsAllow() function decfinition. The brackets added in
construction if ((currentTime > timeout) && (timeout != 0)).
Elena Mamontova [Wed, 19 Oct 2016 08:13:24 +0000 (11:13 +0300)]
Ticket 37. The 'change_policy_timeout' field added to update tb_tariffs
query if schemaVersion > 1, in st->Set(7, id) 7 changed to 8 in
SaveTariff() function.
Elena Mamontova [Tue, 18 Oct 2016 13:22:48 +0000 (16:22 +0300)]
Ticket 37. if(strcasecmp(el, "ChangePolicyTimeout") == 0) construction
added in CHG_TARIFF::Start(). "ChangePolicyTimeout value" string added
in m_answer variable in GET_TARIFFS::CreateAnswer().
Elena Mamontova [Tue, 18 Oct 2016 13:11:20 +0000 (16:11 +0300)]
Ticket 37. The "stg/common.h" header file added. The
structVal["changePolicyTimeout"] element added in GetTariffInfo().
data.tariffConf.changePolicyTimeout getting added in SetTariffInfo().
Elena Mamontova [Mon, 17 Oct 2016 07:30:01 +0000 (10:30 +0300)]
Ticket 37. The 'change_policy_timeout' field added. DROP DEFAULT added
for the 'change_policy', 'change_policy_timeout'. UPDATE added for the
'change_policy', 'change_policy_timeout'.
Elena Mamontova [Mon, 10 Oct 2016 12:55:06 +0000 (15:55 +0300)]
Ticket 37. Default value for the change_policy_timeout changed to 0 in
the CheckAllTables(), MakeUpdate() functions. Getting
change_policy_timeout field value added in RestoreTariff() function.
Elena Mamontova [Tue, 27 Sep 2016 13:02:28 +0000 (16:02 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function, TS2Int()
method changed to readTime() function in postgresql_store_messages.cpp
file. '#include "stg/common.h"' added.
Elena Mamontova [Tue, 27 Sep 2016 12:59:49 +0000 (15:59 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function, TS2Int() method
changed to readTime() function in postgresql_store_users.cpp file.
'#include "stg/common.h"' added.
Elena Mamontova [Tue, 27 Sep 2016 12:52:32 +0000 (15:52 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function in the SaveTariff() function.
TS2Int() method changed to readTime() function in the RestoreTariff() function.
'#include "stg/common.h"' added.
Elena Mamontova [Thu, 22 Sep 2016 12:52:46 +0000 (15:52 +0300)]
Ticket 37. The changePolicyTimeout field added in SELECT FROM
tb_tariffs query in the if (version > 7) construction.
Assign a value to change PolicyTimeout added in if (version > 7)
construction.
Elena Mamontova [Thu, 15 Sep 2016 13:38:57 +0000 (16:38 +0300)]
Ticket 37. RESETABLE<time_t>changePolicyTimeout field declared in the struct
TARIFF_CONF_RES and added in constructor, operator and GetData()
function.
Elena Mamontova [Wed, 14 Sep 2016 14:52:56 +0000 (17:52 +0300)]
Ticket 37. The false parameter changed to true and 'Prohibit equal'
changed to 'Allow equal' in the ensure_equals() function for the 'equal'
object in testobject::test<9>() function.
Elena Mamontova [Fri, 9 Sep 2016 11:52:37 +0000 (14:52 +0300)]
Ticket 37. The true parameter changed to false in ensure_equals()
function for the equal, expensive and cheper check in the testobject::text<10>()
function.
Elena Mamontova [Fri, 9 Sep 2016 07:27:17 +0000 (10:27 +0300)]
Ticket 37. 'Allow equal', 'Allow cheaper' and 'Allow expensive' comments changed to
'Prohibit equal', 'Prohibit cheaper' and 'Prohibit expensive' in the
testobject::test<10>() function.
Elena Mamontova [Mon, 29 Aug 2016 12:33:10 +0000 (15:33 +0300)]
ticket 37. The newTariff, currentTariff objects added, if (newTariff)
checking and TariffChangeIsAllowed() function call added in the
SetUserInfo() function.
Elena Mamontova [Thu, 11 Aug 2016 10:13:36 +0000 (13:13 +0300)]
ticket 37. The newTariff, currentTariff objects added, if (newTariff)
checking and TariffChangeIsAllowed() function call added in the
SetUserInfo() function.