crm.quote.productrows.set
crm.quote.productrows.set(id, rows)
Sets (creates or updates) product positions for a quote.
Parameters
Parameter | Description |
---|---|
id | Quote ID. |
rows | Product positions - is an array ("field"=>"value"[, ...]), where "field" can have values, returned by the crm.productrow.fields method. Product positions for a quote, that existed prior to calling of the method will be replaced by the new ones. After the modified data is saved and updated, the quote total amount will be recalculated. |
Example
var id = prompt("Enter ID"); BX24.callMethod( "crm.quote.productrows.set", { id: id, rows: [ { "PRODUCT_ID": 1, "PRICE": 100.00, "QUANTITY": 2 }, { "PRODUCT_ID": 2, "PRICE": 200.00, "QUANTITY": 1 } ] }, 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.