git.stg.codes
/
stg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c34623e
)
Ticket. if(!data.tariffConf.changePolicyTimeout.empty()) construction
author
Elena Mamontova
<helenh463@gmail.com>
Tue, 1 Nov 2016 13:54:43 +0000
(15:54 +0200)
committer
Elena Mamontova
<helenh463@gmail.com>
Tue, 1 Nov 2016 13:54:43 +0000
(15:54 +0200)
added in the Serialize() function.
stglibs/srvconf.lib/parsers/chg_tariff.cpp
patch
|
blob
|
history
diff --git
a/stglibs/srvconf.lib/parsers/chg_tariff.cpp
b/stglibs/srvconf.lib/parsers/chg_tariff.cpp
index bdc7f42baf217676f0c0f15d7264eacbaf09f8a5..ca4ceb956d95fa0ef1012d4fd8f3b0fa8be52581 100644
(file)
--- a/
stglibs/srvconf.lib/parsers/chg_tariff.cpp
+++ b/
stglibs/srvconf.lib/parsers/chg_tariff.cpp
@@
-78,6
+78,9
@@
if (!data.tariffConf.changePolicy.empty())
case TARIFF::DENY: stream << "<changePolicy value=\"deny\"/>"; break;
}
+if (!data.tariffConf.changePolicyTimeout.empty())
+ stream << "<changePolicyTimeout value=\"" + formatTime(data.tariffConf.changePolicyTimeout.data()) + "\"/>";
+
for (size_t i = 0; i < DIR_NUM; ++i)
if (!data.dirPrice[i].hDay.empty() &&
!data.dirPrice[i].mDay.empty() &&