Documentation

crm.vat.update

crm.vat.update(id, fields)

Update existing tax rate.

Parameters

Parameter Description
id Tax rate ID.
fields Set of fields is an array of the array("updated field"=>"value"[, ...]) type, where "updated field" may take on values returned by the crm.vat.fields method

Example

 var id = prompt("Enter ID");
 BX24.callMethod(
  "crm.vat.update",
  {
   id: id,
   "fields":
        {
         "ACTIVE": "N"
        }
  },
  function(result)
  {
   if(result.error())
    console.error(result.error());
   else
   {
    console.info(result.data());
   }
  }
 );



© «Bitrix Inc.», 2001-2020, «Bitrix Inc.», 2020