{"id":21055,"date":"2022-04-11T13:55:48","date_gmt":"2022-04-11T11:55:48","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/administrators-guide\/accounting\/setting-up-the-accounting-export\/file-export\/"},"modified":"2022-04-11T13:55:48","modified_gmt":"2022-04-11T11:55:48","slug":"file-export","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/administrators-guide\/accounting\/setting-up-the-accounting-export\/file-export\/","title":{"rendered":"File export"},"content":{"rendered":"<div id=\"main-content\" class=\"wiki-content group\">\n<p>File export is suitable for most applications. A text file is generated from the lines of entries made. This file will be saved by the console on the user&#8217;s computer when exporting each batch.<\/p>\n<p>The file export configuration interface is composed of two main sections:<\/p>\n<ol>\n<li><strong>Export file<\/strong> : This part deals with the shape of the generated file.<\/li>\n<li><strong>Template<\/strong> : Allows you to define the structure of the contents of the exported file.<\/li>\n<\/ol>\n<h1 id=\"Exportfichier-\"><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200619.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200619.png\"><\/h1>\n<h1 id=\"Exportfichier-Fichierd'export\">Export file<\/h1>\n<p>This part deals with the shape of the generated file. It allows you to name the file, encode it, and drop it to a specific location.<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200620.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200620.png\"><\/p>\n<h2 id=\"Exportfichier-Chemindufichier\">File Path<\/h2>\n<p>The file path is used to define the location of the file generated by Open Bee\u2122 Scan Capture. When exporting a batch, the file will be placed directly in that location.<br \/>\nIn case this value is empty, a window will then ask the user where to export the file generated when exporting the batch.<\/p>\n<div class=\"aui-message warning shadowed information-macro\">\n<div class=\"message-content\">\n<p>The path entered will be configured only for the user of the current Windows session.<\/p>\n<\/div>\n<\/div>\n<h2 id=\"Exportfichier-Nomdufichier\">File Name<\/h2>\n<p>The name of the file is free, but it must be followed by the desired extension. If this is not the case, a file without an extension will be generated.<\/p>\n<h2 id=\"Exportfichier-Encodage\">Encoding<\/h2>\n<p>Encoding is used in very special cases to improve the handling of special characters. If no encoding is selected, the system encoding will be applied.<\/p>\n<h2 id=\"Exportfichier-Compression\">Compression<\/h2>\n<p>The compression option allows you to zip the export file with the relevant PDF documents for it.<\/p>\n<p><span style=\"font-size: 20.0px;\">Working with Variables<\/span><\/p>\n<p>It is possible to insert variables specific to Open Bee\u2122 Scan Capture in the file name or path. To display the list of available variables, simply use the &#8220;%&#8221; character with the cursor in one of these fields. The variables available depend on the batch or folder concerned by the export, in fact several documents can be exported simultaneously, so it is not possible to use a particular variable present on one of them for the name or path of the file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"confluence-embedded-image confluence-content-image-border\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200621.png\" width=\"614\" height=\"64\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/278200621.png\"><\/p>\n<h1 id=\"Exportfichier-Mod\u00e8le\">Model<\/h1>\n<p>For more information on how to configure the Mustache model, you can consult the <a href=\"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/model-mustache\/\">Mustache model<\/a> page<\/p>\n<h4>Pre-built tags<\/h4>\n<p>These tags are pre-integrated into Open Bee\u2122 Scan Capture to allow it to iterate over certain objects and therefore allow the construction of the output file:<\/p>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<th class=\"confluenceTh\">Variable<\/th>\n<th class=\"confluenceTh\">Context<\/th>\n<th class=\"confluenceTh\">Use<\/th>\n<th class=\"confluenceTh\">Open Bee\u2122 Scan Capture version<\/th>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">vatAccounts<\/td>\n<td class=\"confluenceTd\"><\/td>\n<td class=\"confluenceTd\">Allows you to iterate on VAT accounts<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">simpleAccounts<\/td>\n<td class=\"confluenceTd\"><\/td>\n<td class=\"confluenceTd\">Allows you to iterate on expense accounts<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">personalAccounts<\/td>\n<td class=\"confluenceTd\"><\/td>\n<td class=\"confluenceTd\">Allows you to iterate on third-party accounts<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">accountEntries<\/td>\n<td class=\"confluenceTd\"><\/td>\n<td class=\"confluenceTd\">Allows you to iterate over ledger entry lines<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">analyticalBreakDownLines<\/td>\n<td class=\"confluenceTd\"><strong>accountEntries<\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to iterate over analytical breakdown lines<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">analyticalBreakDownLines_x<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong>accountEntries<\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">x = the number representing the index of the analytical breakdown line. 1&lt;=X&lt;<span style=\"color: #000000;\">Infinity<\/span><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">3.4.4<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">isImported<\/td>\n<td class=\"confluenceTd\"><strong>vatAccounts, simpleAccounts, personalAccounts<\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to test whether or not an account has been imported<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">isReferenced<\/td>\n<td class=\"confluenceTd\"><strong>vatAccounts, simpleAccounts, personalAccounts<\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to test whether the account is referenced in the entries located in the accountEntries tag<\/td>\n<td class=\"confluenceTd\">2.4.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">isClient<\/td>\n<td class=\"confluenceTd\"><strong><strong>personalAccounts<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to test whether the third-party account is a customer account<\/td>\n<td class=\"confluenceTd\">2.6.3<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">isSupplier<\/td>\n<td class=\"confluenceTd\"><strong><strong>personalAccounts<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to test whether the third-party account is a vendor account<\/td>\n<td class=\"confluenceTd\">2.6.3<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\">isVATLine<\/td>\n<td class=\"confluenceTd\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\">Allows you to test whether the entry line contains a VAT account<\/td>\n<td class=\"confluenceTd\">2.7.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">isPersonalLine<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line contains a third-party account<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">2.7.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">isClientLine<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line contains a customer account<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">2.7.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">isSupplierLine<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line contains a vendor account<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">2.7.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">isChargeLine<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line contains a load account<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">2.7.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><span style=\"color: #000000;\">HasAnalyticalBreakdown<\/span><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">{{#&#8230;.}} Allows you to test whether the write line has analytics OR {{&#8230;}} to get the number of analytic lines for a write line<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">{{#&#8230;.}} 3.1.0 AND {{&#8230;}} 3.4.4<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><span style=\"color: #000000;\">isFirstAccountEntryLine<\/span><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line is the first of the entry lines associated with the current document<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">3.2.1<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><span style=\"color: #003366;\">isLastAccountEntryLine<\/span><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to test whether the entry line is the last of the entry lines associated with the current document<\/td>\n<td class=\"confluenceTd\" colspan=\"1\">3.3.0<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><strong>VAT_<\/strong>VariableName<\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><strong><strong>accountEntries<\/strong><\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to obtain information about a variable in the VAT account associated with the current line<\/p>\n<p><em><u>Example<\/u>: On a load line {{<code>accountNumber}} vous permettra d'acc\u00e9der au num\u00e9ro du compte de charge alors que {{VAT_accountNumber}} vous permettra d'acc\u00e9der au num\u00e9ro du compte de TVA li\u00e9 \u00e0 cette ligne.<\/code><\/em><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">3.4.0<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">VariableName<strong>_sum<\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Allows you to get the sum of the variables of an index included in a group<em><u>Example<\/u>: {{<code>HT_1}} permet d'obtenir la 1er valeur de HT alors que {{HT_sum}} permettra d'obtenir la somme des montants HT.<\/code><\/em><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">4.4.0<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\">VariableName<strong>_current<\/strong><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Retrieves the variable corresponding to the idUnit in relation to the current entry line<\/p>\n<p><em><u>Example<\/u>:  <code>Je veux obtenir un montant de TVA particulier, je nomme donc ma variable {{MontantTVA_current}}. Si la ligne courante est une ligne d'\u00e9criture avec le montant HT, Capture retrouvera donc l'idUnit correspondant au montant HT de cette ligne, puis se servira de cet idUnit pour l'appliquer \u00e0 votre variable<\/code><\/em><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">4.4.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Tags that have a context can only be used within the context.<\/p>\n<p>Example: The analyticalBreakDownLines tag can only be used inside accountEntries tags<\/p>\n<p><strong>Encoding problem on a variable<\/strong><\/p>\n<p>When a final value contains a special character, it can happen that the character is incorrectly encoded.<br \/>\nTo write the raw value and avoid encoding problems, you can use the <strong>&amp; <\/strong>character in your variable.<br \/>\n<em>Ex {{tiers}} becomes {{<strong>&amp;tier<\/strong>}}<\/em><\/p>\n<h4 id=\"Exportfichier-Lesvariablesinformationssuppl\u00e9mentaires(Disponibleenversion3.4.0)\"><strong>Additional Information Variables (Available in version 3.4.0)  <\/strong><\/h4>\n<p>Additional information variables are used like this:<\/p>\n<p>1) Choose the source &#8220;Additional Information&#8221; from the list available for a new variable and then name your variable<\/p>\n<p>2) Use your variable like any other, but followed by &#8220;_CleDeLinformationSupplementaireVoulue&#8221;.<\/p>\n<p><em><u>Example<\/u>:<\/em><\/p>\n<ul>\n<li><em>Specified variable name: InfoLib<\/em><\/li>\n<li><em>Key to the additional information required: PROFILTVA<\/em><\/li>\n<li><em>rendered in template text: {{infoLib_<em>TVAprofile<\/em>}}<\/em><\/li>\n<\/ul>\n<div class=\"aui-message problem shadowed information-macro\">\n<div class=\"message-content\">\n<p>Be careful, the additional information key is case-sensitive. It is therefore necessary to have the same capital letters as those present in the key of the information<\/p>\n<\/div>\n<\/div>\n<h4 id=\"Exportfichier-Exportspr\u00e9-param\u00e9tr\u00e9\">Pre-set exports<\/h4>\n<p>Some formats are integrated as soon as Open Bee\u2122 Scan Capture is installed and are almost ready to use. However, some templates contain tags enclosed in square brackets &#8220;[]&#8221;. This is the case for [MY_CODE_EXPERT] and in [MY_NUMERO_DOSSIER] the following example:<\/p>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/256245803.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/256245803.png\"><\/p>\n<p>These variables indicate that a value is required at that location. These are elements that should be replaced by variables, or fixed values, when setting up Open Bee\u2122 Scan Capture.<\/p>\n<div><span style=\"white-space: pre-wrap; background-color: #edf5ff;\"> <\/span><\/div>\n<\/div>\n<p><!--more--><\/p>\n<p><!--more--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>File export is suitable for most applications. A text file is generated from the lines of entries made. This file will be saved by the console on the user&#8217;s computer when exporting each batch. The file export configuration interface is composed of two main sections: Export file : This part deals with the shape of [&hellip;]<\/p>\n","protected":false},"author":97,"featured_media":0,"parent":21011,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21055","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21055","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\/97"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21055"}],"version-history":[{"count":0,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21055\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21011"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21055"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}