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());
   }
  }
 );



© «Bitrix24», 2001-2024
Up