Urfaclient список ошибок

Технические вопросы по UTM 5.0
Ответить
root_khj
Сообщения: 44
Зарегистрирован: Ср ноя 23, 2011 14:47

Urfaclient список ошибок

Сообщение root_khj »

Добрый день уважаемые друзья.
Есть ли у кого не будь список ошибок от выполнение команд urfaclienta?

при выполнение команд на несуществующий лицевой счет выходит ошибка ERROR: code 2 (No such file or directory)
Пример добавление платежа:

/netup/utm5/bin/utm5_urfaclient -a add_payment -account_id 18988 -payment 5.0000
Processing action: add_payment
WARN: variable burn_date value not defined in config and cmdline.
WARN: variable payment_date value not defined in config and cmdline.
WARN: variable payment_to_invoice value not defined in config and cmdline.
WARN: variable turn_on_inet value not defined in config and cmdline.
ERROR: code 2 (No such file or directory)

Аватара пользователя
Magnum72
Сообщения: 1947
Зарегистрирован: Чт сен 22, 2005 06:54
Контактная информация:

Сообщение Magnum72 »

Лучше платежи пачкой проводить, быстрее:

Код: Выделить всё

<?xml version="1.0"?>
<urfa>
<!-- ######################### USAGE&#58; ##############################################

add_payment_from_array -datafile add_payment_from_array_datafile.xml

#################################################################################### -->

<!-- Obiazatelnie peremennie -->
  <parameter name="account_id"/>
  <parameter name="payment"/>

<!-- Neobiazatelnie peremennie -->
  <parameter name="payment_method"/>
  <parameter name="payment_ext_number"/>
  <parameter name="comment"/>
  <parameter name="admin_comment"/>
  <parameter name="payment_date"/>
  <parameter name="currency_id"/>
  <parameter name="burn_date"/>
  <parameter name="payment_to_invoice"/>
  <parameter name="turn_on_inet"/>

  <for name="i" from="0" count="size&#40;pay_array&#41;">
    <set dst="account_id" src="pay_array" src_index="i,0"/>
    <set dst="payment" src="pay_array" src_index="i,1"/>
    <set dst="payment_method" src="pay_array" src_index="i,2"/>
    <set dst="payment_ext_number" src="pay_array" src_index="i,3"/>
    <set dst="comment" src="pay_array" src_index="i,4"/>
    <set dst="admin_comment" src="pay_array" src_index="i,5"/>
    <set dst="payment_date" src="pay_array" src_index="i,6"/>

    <if variable="payment_date" value="" condition="eq">
      <set dst="payment_date" value="now&#40;&#41;"/>
    </if>

<!-- Provodim platej tolko esli on menee dopustimoy summy -->
    <if variable="payment" value="100000000" condition="lt">
      <call function="rpcf_add_payment_for_account" output="0"/>
    </if>

    <set dst="s" value="size&#40;result_array&#41;"/>
    <set dst="result_array" dst_index="s,0" src="payment_ext_number"/>
    <set dst="result_array" dst_index="s,1" src="payment_transaction_id"/>
    <set dst="payment_transaction_id" value=""/>
  </for>

  <out var="result_array"/>

</urfa>

add_payment_from_array_datafile.xml:

Код: Выделить всё

<?xml version="1.0"?>
<urfa>
  <array name="pay_array" dimension="2">
    <dim>
      <dim comment="Account ID">85</dim>
      <dim comment="Payment">99999999999999999990</dim>
      <dim comment="Payment method">1</dim>
      <dim comment="Payment external number">111</dim>
      <dim comment="Comment &#40;For user&#41;">User comment</dim>
      <dim comment="Comment &#40;For administrator&#41;">Admin comment</dim>
      <dim comment="Payment date"></dim>
    </dim>
    <dim>
      <dim comment="Account ID">85</dim>
      <dim comment="Payment"></dim>
      <dim comment="Payment method">1</dim>
      <dim comment="Payment external number">222</dim>
      <dim comment="Comment &#40;For user&#41;">User comment</dim>
      <dim comment="Comment &#40;For administrator&#41;">Admin comment</dim>
      <dim comment="Payment date"></dim>
    </dim>
  </array>
</urfa>

Ответить