{"id":21222,"date":"2022-04-11T13:56:04","date_gmt":"2022-04-11T11:56:04","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/currency-conversions-index\/"},"modified":"2026-05-13T09:36:36","modified_gmt":"2026-05-13T07:36:36","slug":"currency-conversions-index","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/currency-conversions-index\/","title":{"rendered":"Currency Conversions Index"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"Indexconversionsendevise-G&#xE9;n&#xE9;ral\">General<\/h1>\n\n<p>It is possible to add calculated indexes in the videocoding tab in order to manage currency conversions.<\/p>\n\n<h5 class=\"wp-block-heading\" id=\"Indexconversionsendevise-Fonctionnement:\">Operation: <\/h5>\n\n<p>4 indexes are added to the videocoding and must be made visible to third parties using foreign currency amounts.<\/p>\n\n<p>3 indexes are computed via scripts. The user does not have to enter these values except to correct\/balance amounts.<\/p>\n\n<p>1 index is to be entered manually by the user: the conversion rate. It can be configured by default by provider (not by currency). Once entered, the scripted indexes are recalculated from the entered value.<\/p>\n\n<h5 class=\"wp-block-heading\" id=\"Indexconversionsendevise-Renduvisuel:\">Visual:  <\/h5>\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/273355549.png\" alt=\"\"\/><\/figure>\n\n<h1 class=\"wp-block-heading\" id=\"Indexconversionsendevise-Configuration\">Configuration<\/h1>\n\n<p>To simplify user manipulations, we have included all our indexes in an index group to enable\/disable them in a single manipulation.<\/p>\n\n<h5 class=\"wp-block-heading\" id=\"Indexconversionsendevise-Tauxdeconversion\">Conversion Rate<\/h5>\n\n<p>The conversion rate is a string value, to allow you to receive decimals with more than 2 decimal places.<\/p>\n\n<h5 class=\"wp-block-heading\" id=\"Indexconversionsendevise-Indextotaux\">Total Indexes<\/h5>\n\n<p>These are decimal scripted indexes.<\/p>\n\n<p>Here&#8217;s the script to use and customize for each index:<\/p>\n\n<pre class=\"wp-block-code\"><code>\/**\n * @param pParameters : Informations du document (les index dans lesquels on va chercher la date)\n * @param pIDIndexToConvert : identifiant des index \u00e0 sommer et convertir en devise\n * @param idDateIndex : identifiant de l'index reprensentant le taux de la devise \u00e0 appliquer \u00e0 pIDIndexToConvert\n * @return montant en devise converti dans le taux renseign\u00e9\n *\/\nvar getTTCConverted= function(pParameters, pIDIndexToConvert, pIDIndexConversion){\n     \n    var indexesToConvert = getIndexesFromID(pParameters,pIDIndexToConvert);\n    var taux = parseFloat(getTextFromIndexInfo(getFirstIndexFromID(pParameters,pIDIndexConversion)));\n\tvar totalIndexToConvert = 0;\n\t\n\tfor(var i=0;i &lt; indexesToConvert.length;i++){\n        var indexeToConvert = getTextFromIndexInfo(indexesToConvert&#91;i]);\n        totalIndexToConvert += parseFloat(indexeToConvert.replace(',', '.'));\n    }\n\t\n\treturn totalIndexToConvert * taux;\n};\nreturn getTTCConverted(pParameters, \"AMOUNT_INCLUDING_VAT_INDEX\", \"TAUX_DEVISE_CONVERSION_DEVISE_INDEX\").toFixed(2);<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>General It is possible to add calculated indexes in the videocoding tab in order to manage currency conversions. Operation: 4 indexes are added to the videocoding and must be made visible to third parties using foreign currency amounts. 3 indexes are computed via scripts. The user does not have to enter these values except to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21191,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21222","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21222","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=21222"}],"version-history":[{"count":1,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21222\/revisions"}],"predecessor-version":[{"id":21223,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21222\/revisions\/21223"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21191"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}