Difference between revisions of "ExportEbp.json"

Jump to: navigation, search
m (Created page with "<javascript>{ "outputFormat":{ "contentType":"text\/plain", "charset":"cp850", "filePrefix":"ecriture_", "fileExtension":"txt", "converter":"DOS" }, "fi...")
 
 
Line 18: Line 18:
 
     },
 
     },
 
     {
 
     {
       "name":"account_date",
+
       "name":"converted_account_date",
 
       "format":{
 
       "format":{
 
         "name":"formatDate",
 
         "name":"formatDate",
Line 29: Line 29:
 
       "name":"paper",
 
       "name":"paper",
 
       "format":{
 
       "format":{
         "name":"accountPaper"
+
         "name":"accountJournal",
 +
        "defaultJournal":"OD",
 +
        "parameter":[{
 +
            "6":"AC",
 +
            "7":"VT",
 +
            "51":"BQ",
 +
            "53":"CA"
 +
            }]
 
       }
 
       }
 
     },
 
     },
Line 109: Line 116:
 
     },
 
     },
 
     {
 
     {
       "name":"account_date",
+
       "name":"converted_account_date",
 
       "format":{
 
       "format":{
 
         "name":"formatDate",
 
         "name":"formatDate",

Latest revision as of 11:08, 28 January 2020

{
  "outputFormat":{
    "contentType":"text\/plain",
    "charset":"cp850",
    "filePrefix":"ecriture_",
    "fileExtension":"txt",
    "converter":"DOS"
  },
  "field":[
    {
      "name":"flow_id",
      "format":{
        "name":"formatNumber",
        "parameter":[
          "%5.0f"
        ]
      }
    },
    {
      "name":"converted_account_date",
      "format":{
        "name":"formatDate",
        "parameter":[
          "DDMMYYYY"
        ]
      }
    },
    {
      "name":"paper",
      "format":{
        "name":"accountJournal",
        "defaultJournal":"OD",
        "parameter":[{
            "6":"AC",
            "7":"VT",
            "51":"BQ",
            "53":"CA"
            }]
      }
    },
    {
      "name":"export_account",
      "format":{
        "name":"formatText",
        "removeChar":",",
        "rightPadding":" ",
        "size":15
      }
    },
    {
      "text":""
    },
    {
      "name":"account_entry_description",
      "format":{
        "name":"formatText",
        "appendText":"\"",
        "prependText":"\"",
        "rightPadding":" ",
        "size":40
      }
    },
    {
      "text":"",
      "format":{
        "name":"formatText",
        "appendText":"\"",
        "prependText":"\"",
        "rightPadding":" ",
        "size":15
      }
    },
    {
      "name":"debit",
      "format":{
        "name":"formatNumber",
        "parameter":[
          "%013.2f"
        ]
      },
      "if":{
        "leftPart":"debit",
        "operator":">",
        "rightPart":"0"
      }
    },
    {
      "text":"D",
      "if":{
        "leftPart":"debit",
        "operator":">",
        "rightPart":"0"
      }
    },
    {
      "name":"credit",
      "format":{
        "name":"formatNumber",
        "parameter":[
          "%013.2f"
        ]
      },
      "if":{
        "leftPart":"debit",
        "operator":"==",
        "rightPart":"0"
      }
    },
    {
      "text":"C",
      "if":{
        "leftPart":"debit",
        "operator":"==",
        "rightPart":"0"
      }
    },
    {
      "name":"converted_account_date",
      "format":{
        "name":"formatDate",
        "parameter":[
          "DDMMYYYY"
        ]
      }
    },
    {
      "text":""
    }
  ],
  "separator":",",
  "endLine":"\n"
}