crm.requisite.link.list
Scope: catalog Permissions to execute: for all
crm.requisite.link.list(order, filter)
Returns list of requisite links. These links determine, which requites are selected for a deal, estimate or an invoice. At the same time, such requisites must be part of selected company or a contact. This way, if a company is selected as a buyer in the invoice, the requisites of the buyer must belong to this company. Only a company from "Your company requisites" selection list can be selected as a seller. Each link record contains the following IDs:
- " ENTITY_TYPE_ID Entity type IDs are returned by the method crm.enum.ownertype " - key field. Entity type ID with selected requisites/details. Possible types: "Deal", "Estimate", "Invoice". Required field.
- "ENTITY_ID" - key field. Entity identifier with selected requisites. Required field.
- "REQUISITE_ID" - client details ID (company or a contact);
- "BANK_DETAIL_ID" - client bank details ID;
- "MC_REQUISITE_ID" - company-seller details ID;
- "MC_BANK_DETAIL_ID" - company-seller bank details ID.
If the ID equals to 0, then the corresponding requisite was not selected for a deal, estimate or an invoice.
Parameters
Parameter | Description |
---|---|
order | Sorting fields. |
filter | Filter fields. |
Example
BX24.callMethod( "crm.requisite.link.list", { order: {"ENTITY_ID": "ASC"}, filter: {"ENTITY_TYPE_ID": 5} // Invoice }, function (result) { if (result.error()) { console.error(result.error()); } else { console.dir(result.data()); if (result.more()) result.next(); } } );
© «Bitrix24», 2001-2024