ExportCegidEcrexcel.json

From OpenFlyers Documentation
Revision as of 10:52, 12 October 2016 by imported>Jcheng
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<javascript>{

 "outputFormat":{
   "contentType":"text\/csv",
   "charset":"cp850",
   "fileName":"ecrexcel.csv",
   "converter":"DOS"
 },
 "field":[
   {
     "name":"paper",
     "format":{
       "name":"accountJournal",
       "defaultJournal":"ODS",
       "parameter":[{
           "4":"ACH",
           "51":"BQE",
           "53":"CAI",
           "7":"VEN"
       }]
     }
   },
   {
     "name":"converted_account_date",
     "format":{
       "name":"formatDate",
       "parameter":[
         "DD/MM/YYYY"
       ]
     }
   },
   {
     "name":"export_account",
     "format":{
       "name":"extractPart",
       "parameter":[{
         "0":"/([0-9]{3})([0-9a-z]*)/i",
         "1":0
       }]
     }
   },
   {
     "name":"export_account",
     "format":{
       "name":"extractPart",
       "parameter":[{
         "0":"/(411)([0-9a-z]*)/i",
         "1":1
       }]
     }
   },
   {
     "name":"id",
     "format":{
       "name":"formatText",
       "size":35
     }
   },
   {
     "name":"account_entry_description",
     "format":{
       "name":"formatText",
       "size":35
     }
   },
   {
     "name":"debit",
     "format":{
       "name":"formatNumber",
       "parameter":[
         "%0.2f"
       ]
     },
     "if":{
       "leftPart":"debit",
       "operator":">",
       "rightPart":"0"
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"debit",
       "operator":"==",
       "rightPart":"0"
     }
   },
   {
     "name":"credit",
     "format":{
       "name":"formatNumber",
       "parameter":[
         "%0.2f"
       ]
     },
     "if":{
       "leftPart":"debit",
       "operator":"==",
       "rightPart":"0"
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"debit",
       "operator":">",
       "rightPart":"0"
     }
   }
 ],
 "separator":";",
 "endLine":"\n"

}</javascript>