Documentation

Update

int
CSaleUserTransact::Update(
 int ID,
 array arFields
);

Method updates transaction parameters according to parameters from arFields array. Non-static method.

Call parameters

ParameterDescription
ID Updated transaction code.
arFields Associative array with new parameters for a new transaction with keys:
  • USER_ID - user code;
  • AMOUNT - amount;
  • CURRENCY - amount currency;
  • DEBIT - "Y", if debiting the account, and "N", if crediting the account;
  • DESCRIPTION - description;
  • ORDER_ID - order code, if transaction is order-related;
  • EMPLOYEE_ID - user code who performed transaction;
  • TRANSACT_DATE - transaction date.

Returned values

Method returns code for updated transaction or false in case of error.



© «Bitrix24», 2001-2024
Up