crm.invoice.recurring.update(id, fields)
The method updates existing setting for recurring invoice template.
Parameters
Parameter |
Description |
id |
ID of template setting for recurring invoice. |
fields |
Set of fields - array("updated field"=>"value"[, ...]) type, where "updated field" can have values returned by the method crm.invoice.recurring.fields. |
Example:
var id = prompt("Enter ID");
BX24.callMethod(
"crm.invoice.recurring.update",
{
id: id,
fields:
{
"SEND_BILL": "Y",
"EMAIL_ID": 136,
"PARAMS": {
"MODE": "month",
"TYPE": 2,
"INTERVAL": 3,
"WEEKDAY": "Monday",
"NUM_WEEKDAY_IN_MONTH": 4,
"DATE_PAY_BEFORE_OFFSET_TYPE": "day",
"DATE_PAY_BEFORE_OFFSET_VALUE": 15,
}
},
},
function(result)
{
if(result.error())
console.error(result.error());
else
{
console.info(result.data());
}
}
);
© «Bitrix Inc.»,
2001-2021,
«Bitrix Inc.», 2021
User Comments
User comments are not part of official documentation. Use information provided by other users in the comments at your own risk.The User Comments section is not to be used as a feature discussion board. Only registered users can post comments. Your comment will be visible once it has been approved by the moderator.