ExportCsvDebitCreditWithCommaDecimal.json

From OpenFlyers Documentation
Revision as of 13:57, 17 February 2017 by imported>Jcheng (Created page with "<javascript>{ "outputFormat":{ "contentType":"text\/csv", "charset":"UTF-8", "filePrefix":"accountancy_", "fileExtension":"csv", "converter":"Default"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<javascript>{

 "outputFormat":{
   "contentType":"text\/csv",
   "charset":"UTF-8",
   "filePrefix":"accountancy_",
   "fileExtension":"csv",
   "converter":"Default"
 },
 "field":[
   {
     "name":"flow_id",
     "format":{
       "name":"formatNumber",
       "parameter":[
         "%06.0f"
       ]
     }
   },
   {
     "name":"paper",
     "format":{
       "name":"accountJournal",
       "defaultJournal":"OD",
       "parameter":[{
           "51":"BQ",
           "53":"CAI",
           "7":"VT"
           }]
     }
   },
   {
     "name":"converted_account_date",
     "format":{
       "name":"formatDate",
       "parameter":[
         "YYYYMMDD"
       ]
     }
   },
   {
     "name":"export_account"
   },
   {
     "name":"account_entry_description",
     "format":{
       "name":"formatText",
       "removeChar":[
           "&amp;",
           "&gt;",
           "&lt;",
           ";"
       ]
     }
   },
   {
     "name":"debit",
     "format":{
       "name":"formatNumber",
       "parameter":[
         "%08.2f"
       ],
       "separatorDecimal":","
     },
     "if":{
       "leftPart":"debit",
       "operator":">",
       "rightPart":"0"
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"debit",
       "operator":">",
       "rightPart":"0"
     }
   },
   {
     "text":"",
     "if":{
       "leftPart":"debit",
       "operator":"==",
       "rightPart":"0"
     }
   },
   {
     "name":"credit",
     "format":{
       "name":"formatNumber",
       "parameter":[
         "%08.2f"
       ],
       "separatorDecimal":","
     },
     "if":{
       "leftPart":"debit",
       "operator":"==",
       "rightPart":"0"
     }
   }
 ],
 "separator":";",
 "endLine":"\n"

}</javascript>