+if ((it = structVal.find("tariff")) != structVal.end())
+ {
+ std::string tariff(xmlrpc_c::value_string(it->second));
+ size_t pos = tariff.find('/');
+ std::string nextTariff;
+ if (pos != std::string::npos)
+ {
+ nextTariff = tariff.substr(pos + 1);
+ tariff = tariff.substr(0, pos);
+ }
+
+ if (tariffs->FindByName(tariff))
+ if (iter->property.tariffName.Get() != tariff)
+ if (!iter->property.tariffName.Set(tariff,
+ admin,
+ login,
+ &store))
+ return true;
+
+ if (nextTariff != "" &&
+ tariffs->FindByName(nextTariff))
+ if (iter->property.nextTariff.Get() != nextTariff)
+ if (!iter->property.nextTariff.Set(tariff,
+ admin,
+ login,
+ &store))
+ return true;
+ }
+