Inforce.json: Difference between revisions

From OpenFlyers Documentation
Jump to navigation Jump to search
imported>Jcheng
(Created page with "<javascript>{ "outputFormat":{ "contentType":"text\/csv", "charset":"UTF-8", "fileName":"Comptt01.inf", "converter":"Default" }, "field":[ { "t...")
 
No edit summary
 
Line 1: Line 1:
<javascript>{
<syntaxhighlight lang="javascript">
{
   "outputFormat":{
   "outputFormat":{
     "contentType":"text\/csv",
     "contentType":"text\/csv",
Line 131: Line 132:
   "separator":";",
   "separator":";",
   "endLine":"\r\n"
   "endLine":"\r\n"
}</javascript>
}
</syntaxhighlight>

Latest revision as of 11:56, 24 November 2024

{
  "outputFormat":{
    "contentType":"text\/csv",
    "charset":"UTF-8",
    "fileName":"Comptt01.inf",
    "converter":"Default"
  },
  "field":[
    {
      "text":"Compt"
    },
    {
      "name":"paper",
      "format":{
        "name":"accountJournal",
        "defaultJournal":"OD",
        "parameter":[{
            "51":"BQ",
            "53":"CA",
            "7":"VT"
        }]
      }
    },
    {
      "name":"converted_account_date",
      "format":{
        "name":"formatDate",
        "parameter":[
          "DDMMYY"
        ]
      }
    },
    {
      "name":"account_entry_description",
      "format":{
        "name":"formatText",
        "removeChar":"-",
        "size":29
      }
    },
    {
      "text":"0"
    },
    {
      "name":"total_entry",
      "format":{
        "name":"formatText",
        "size":2
      }
    },
    {
      "text":"0"
    },
    {
      "name":"debit",
      "format":{
        "name":"formatNumber",
        "parameter":[
          "%0.2f"
        ]
      },
      "if":{
        "leftPart":"debit",
        "operator":"!=",
        "rightPart":"0.00"
      }
    },
    {
      "text":"0",
      "if":{
        "leftPart":"debit",
        "operator":"==",
        "rightPart":"0"
      }
    },
    {
      "name":"credit",
      "format":{
        "name":"formatNumber",
        "parameter":[
          "%0.2f"
        ]
      },
      "if":{
        "leftPart":"credit",
        "operator":"!=",
        "rightPart":"0.00"
      }
    },
    {
      "text":"0",
      "if":{
        "leftPart":"credit",
        "operator":"==",
        "rightPart":"0"
      }
    },
    {
      "name":"export_account",
      "format":{
        "name":"formatText",
        "rightPadding":"0",
        "size":8
      }
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"0"
    },
    {
      "text":"EUR"
    }
  ],
  "separator":";",
  "endLine":"\r\n"
}