Difference between revisions of "Accounting export template Csv"
m (Created page with "<xml><?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text" media-type="text/plain" ...") |
|||
Line 1: | Line 1: | ||
− | < | + | <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":"accountPaper" | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "name":"account_date", | |
− | + | "format":{ | |
− | + | "name":"formatDate", | |
− | + | "parameter":[ | |
− | + | "YYYYMMDD" | |
− | + | ] | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "name":"export_account" | |
− | + | }, | |
− | + | { | |
− | + | "name":"account_entry_description", | |
− | + | "format":{ | |
− | + | "name":"formatText", | |
− | + | "rightPadding":" ", | |
− | + | "size":25 | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "name":"debit", | |
− | + | "format":{ | |
− | + | "name":"formatNumber", | |
− | + | "parameter":[ | |
− | + | "%08.2f" | |
− | + | ] | |
− | + | }, | |
− | + | "if":{ | |
− | + | "leftPart":"debit", | |
− | + | "operator":">", | |
− | + | "rightPart":"0" | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "text":"D", | |
− | + | "if":{ | |
− | + | "leftPart":"debit", | |
− | + | "operator":">", | |
− | + | "rightPart":"0" | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "name":"credit", | |
− | + | "format":{ | |
− | + | "name":"formatNumber", | |
− | + | "parameter":[ | |
− | + | "%08.2f" | |
− | + | ] | |
− | + | }, | |
− | + | "if":{ | |
− | + | "leftPart":"debit", | |
− | + | "operator":"==", | |
− | + | "rightPart":"0" | |
− | + | } | |
− | + | }, | |
− | + | { | |
− | + | "text":"C", | |
+ | "if":{ | ||
+ | "leftPart":"debit", | ||
+ | "operator":"==", | ||
+ | "rightPart":"0" | ||
+ | } | ||
+ | } | ||
+ | ], | ||
+ | "separator":";", | ||
+ | "endLine":"\n" | ||
+ | }</javascript> |
Revision as of 12:37, 2 May 2014
{ "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":"accountPaper" } }, { "name":"account_date", "format":{ "name":"formatDate", "parameter":[ "YYYYMMDD" ] } }, { "name":"export_account" }, { "name":"account_entry_description", "format":{ "name":"formatText", "rightPadding":" ", "size":25 } }, { "name":"debit", "format":{ "name":"formatNumber", "parameter":[ "%08.2f" ] }, "if":{ "leftPart":"debit", "operator":">", "rightPart":"0" } }, { "text":"D", "if":{ "leftPart":"debit", "operator":">", "rightPart":"0" } }, { "name":"credit", "format":{ "name":"formatNumber", "parameter":[ "%08.2f" ] }, "if":{ "leftPart":"debit", "operator":"==", "rightPart":"0" } }, { "text":"C", "if":{ "leftPart":"debit", "operator":"==", "rightPart":"0" } } ], "separator":";", "endLine":"\n" }