ExportFec.json

From OpenFlyers Documentation
Revision as of 12:17, 10 July 2019 by imported>Eberthomieu (Created page with "<javascript>{ "outputFormat":{ "contentType":"text\/csv", "charset":"UTF-8", "filePrefix": "FEC", "fileExtension": "csv", "converter":"ISO2ASCII" },...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<javascript>{

"outputFormat":{
   "contentType":"text\/csv",
   "charset":"UTF-8",
   "filePrefix": "FEC",
   "fileExtension": "csv",
   "converter":"ISO2ASCII"
 },
 "header": "JournalCode|JournalLib|EcritureNum|EcritureDate|CompteNum|CompteLib|CompAuxNum|CompAuxLib|PieceRef|PieceDate|EcritureLib|Debit|Credit|EcritureLet|DateLet|ValidDate|Montantdevise|Idevise",
 "field":[
   {
     "name":"paper",
     "format":{
       "name":"accountJournal",
       "defaultJournal":"ODS",
       "parameter":[{
         "4":"ACH",
         "51":"BQE",
         "53":"CAI",
         "7":"VEN"
       }]
     }
   },
   {
     "name":"paper",
     "format":{
       "name":"accountJournal",
       "defaultJournal":"ODS",
       "parameter":[{
         "4":"Journal des achats",
         "51":"Journal des banques",
         "53":"Journal des caisses",
         "7":"Journal des ventes"
       }]
     }
   },
   {
     "name":"flow_id"
   },
   {
     "name":"registration_date",
       "format":{
           "name":"formatDate",
           "parameter":[
               "YYYYMMDD"
           ]
       }
   },
   {
     "name":"export_account",
       "format":{
           "name":"formatText",

"size":3

       }
   },
   {
     "name":"export_account"
   },
   {
     "text":""
   },
   {
     "text":""
   },
   {
     "name":"supplier_bill_account_entry_supplier_bill_id",
     "if":{
       "leftPart":"supplier_bill_account_entry_supplier_bill_id",
       "operator":"!=",
       "rightPart":""
     }
   },

{

     "name":"customer_bill_id",
     "if":{
       "leftPart":"customer_bill_id",
       "operator":"!=",
       "rightPart":""
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"customer_bill_id",
       "operator":"==",
       "rightPart":"",
       "logicalOperator":"&&",
       "secondLeftPart":"supplier_bill_account_entry_supplier_bill_id",
       "secondOperator":"==",
       "secondRightPart":""
     }
   },
   {
     "name":"registration_date",
       "format":{
           "name":"formatDate",
           "parameter":[
               "YYYYMMDD"
           ]
       },
     "if":{
       "leftPart":"customer_bill_id",
       "operator":"!=",
       "rightPart":"",
       "logicalOperator":"||",
       "secondLeftPart":"supplier_bill_account_entry_supplier_bill_id",
       "secondOperator":"!=",
       "secondRightPart":""
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"customer_bill_id",
       "operator":"==",
       "rightPart":"",
       "logicalOperator":"&&",
       "secondLeftPart":"supplier_bill_account_entry_supplier_bill_id",
       "secondOperator":"==",
       "secondRightPart":""
     }
   },

{

     "name":"product_label"
   },

{

     "name":"debit",

"format":{

       "parameter":[
         "%.2f"
       ],

"name":"formatNumber", "separatorDecimal":"," }

   },

{

     "name":"credit",

"format":{

       "parameter":[
         "%.2f"
       ],

"name":"formatNumber", "separatorDecimal":"," }

   },

{

     "text":""
   },
   {
     "text":""
   },

{

     "name":"signature_date",
     "format":{
       "name":"formatDate",
       "timestamp": true,
       "parameter":[
         "YYYYMMDD"
       ]
     }
   },

{

     "text":""
   },
   {
     "text":""
   }
 ],
 "separator":"|",
 "endLine":"\n"

}</javascript>