Bitrix Site Manager

CSaleUserTransact::Update

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

The method Update modifies parameters of the specified transaction.

Parameters

ParameterDescription
ID The ID of the transaction to modify.
arFields Associated array containing new parameters of the transaction. The array has the following keys:
  • USER_ID - the user ID;
  • AMOUNT - the amount;
  • CURRENCY - the currency of the amount;
  • DEBIT - "Y" places money to an account, "N" withdraws money from an account;
  • DESCRIPTION - the description;
  • ORDER_ID - the order ID (if applicable);
  • EMPLOYEE_ID - the ID of the user who performed the transaction;
  • TRANSACT_DATE - the date of the transaction.

Return Values

The method returns the ID of the modified transaction on success, or false otherwise.