Documentation

crm.item.payment.product.setQuantity

Scope: catalog Permissions to execute: for all

crm.item.payment.product.setQuantity(id, quantity)

Updates the quantity of product inside a payment.

Parameters

Parameter Description
id Product item ID inside a payment.
quantity Product quantity.

Example

BX.rest.callMethod(
	'crm.item.payment.product.setQuantity',
	{
		id: 169,
		quantity : 2
	},
	function(result) 
	{
		if (result.error())
		{
			console.error(result.answer.error_description);
		}
		else
		{
			console.log(result.data());
		}
	}
);


© «Bitrix24», 2001-2024