ExportCegidEcrexcel.json: Difference between revisions
Jump to navigation
Jump to search
imported>Jcheng No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<javascript>{ | <syntaxhighlight lang="javascript"> | ||
{ | |||
"outputFormat":{ | "outputFormat":{ | ||
"contentType":"text\/csv", | "contentType":"text\/csv", | ||
Line 110: | Line 111: | ||
"separator":";", | "separator":";", | ||
"endLine":"\n" | "endLine":"\n" | ||
}</ | } | ||
</syntaxhighlight> |
Latest revision as of 11:56, 24 November 2024
{
"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"
}