catalog.document.element.fields
Scope: catalog Permissions to execute: for all
Attention! Starting from version 22.400.0 the method has been deprecated. It's recommended to use the method catalog.document.element.getFields.
catalog.document.element.fields()
Method returns list of fields for inventory management products.
Parameters
No parameters.
Example
BX24.callMethod( 'catalog.document.element.fields', {}, function(result) { if(result.error()) console.error(result.error()); else console.log(result.data()); } );
$result = CRest::call( 'catalog.document.element.fields' ); echo '<pre>'; print_r($result); echo '</pre>';
Returned fields
Field | Description | Тип | Note |
---|---|---|---|
ID | Identifier | integer | |
DOC_ID | Item ID | integer | Required |
STORE_FROM | Source warehouse | integer | |
STORE_TO | Target warehouse | integer | Required |
ELEMENT_ID | Product ID (catalog.product.list) | integer | Required |
AMOUNT | Number | double | Required |
PURCHASING_PRICE | Purchase price | double | Required |
© «Bitrix24», 2001-2024