{"id":21351,"date":"2022-04-11T13:56:08","date_gmt":"2022-04-11T11:56:08","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/wording\/label-third-party-index-item-line-index\/"},"modified":"2026-05-13T09:36:50","modified_gmt":"2026-05-13T07:36:50","slug":"label-third-party-index-item-line-index","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/wording\/label-third-party-index-item-line-index\/","title":{"rendered":"Label: Third Party + Index + Item Line Index"},"content":{"rendered":"\n<p>To be replaced:<\/p>\n\n<ul class=\"wp-block-list\"><li>ID_INDEX_DETECTION = Id of the classic index e.g. &#8220;INVOICE_NUMBER_INDEX&#8221;<\/li><li>ID_ARTICLE_LINE = Item line id, e.g. &#8220;ARTICLES_LINE_INDEX&#8221;<\/li><li>EX_ARTICLE_LINE = Id of the child index of the item line e.g. &#8220;DESCRIPTION_ARTICLES_LINE_INDEX&#8221;<\/li><\/ul>\n\n<pre class=\"wp-block-code\"><code>var getSimpleIndex = function(pParameters, idIndex){\n    return getTextFromIndexInfo(getFirstIndexFromID(pParameters, idIndex));   \n};\nvar getIndexArticleLine = function(pParameters, idArticleLine, idIndex){\n    var articleLine = getArticleLine(pParameters, idArticleLine, ID_UNIT); \n     if(articleLine != null &amp;&amp; articleLine.indexInfos != null &amp;&amp; articleLine.indexInfos.length &gt; 0)\n        return getTextFromIndexInfo(getIndexFromArticleLine(articleLine, idIndex));\n    return \"\";\n};\n\nvar resultLabel = THIRDPART.name + \" \" + getSimpleIndex(pParameters, ID_INDEX_DETECTION);\nif(IS_ARTICLE)\n\tresultLabel += \" \" + getIndexArticleLine(pParameters, ID_ARTICLE_LINE, ID_INDEX_ARTICLE_LINE);\nreturn resultLabel;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To be replaced: ID_INDEX_DETECTION = Id of the classic index e.g. &#8220;INVOICE_NUMBER_INDEX&#8221; ID_ARTICLE_LINE = Item line id, e.g. &#8220;ARTICLES_LINE_INDEX&#8221; EX_ARTICLE_LINE = Id of the child index of the item line e.g. &#8220;DESCRIPTION_ARTICLES_LINE_INDEX&#8221;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21271,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21351","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21351"}],"version-history":[{"count":1,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21351\/revisions"}],"predecessor-version":[{"id":21352,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21351\/revisions\/21352"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21271"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}