urfaclient rpcf_get_discount_periods
-
- Сообщения: 1
- Зарегистрирован: Вт май 28, 2013 13:32
urfaclient rpcf_get_discount_periods
Народ, как получить id текущего периода? Urfa официальный, работает. Вышеозначенная функция не возвращает ничего. Период в таблице discount_periods, соответственно. Лезть мимо API в SQL ну вообще не хочется.
Странно.
Код: Выделить всё
/netup/utm5/bin/utm5_urfaclient -a get_discount_periods_list -c $urfa_cfg_file -l $user -P $passwd
Код: Выделить всё
<?xml version="1.0"?>
<urfa>
<session key="bc91a45194ad5cd6ad290a5a92707ba4"/>
<call function="rpcf_get_discount_periods">
<output>
<integer name="discount_periods_count" value="23"/>
<array name="i">
<item>
<integer name="static_id" value="0"/>
<integer name="discount_period_id" value="1"/>
<integer name="start_date" value="0"/>
<integer name="end_date" value="2000000000"/>
<integer name="periodic_type" value="1"/>
<integer name="custom_duration" value="0"/>
<integer name="next_discount_period_id" value="0"/>
<integer name="canonical_length" value="2000000000"/>
</item>
</output>
</call>
</urfa>