-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExample.jcomma.json
More file actions
111 lines (111 loc) · 3.06 KB
/
Copy pathExample.jcomma.json
File metadata and controls
111 lines (111 loc) · 3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"recipeName": "Example",
"comment": "This recipe is provided as an example. The example CSV download link above gives you a (completely fictitious) CSV typical of one a bank might give you: try it with this recipe.\n\nThe recipe converts that and others like it into three columns: date (ISO), type and description concatenated, and amount (positive for deposits, negative for withdrawals).\n\nThings in the raw CSV that would often lead to problems include: the encoding (it is actually in Windows-1252 format), the pound signs and commas in amounts, the use of separate debit and credit columns, the heading rows, interspersed extra rows, and the custom date format.\n\nNote particularly the use of the amount field twice, one to manage deposits and one for withdrawals with one of them omitted for each row, the withdrawals being negated after conversion to number.\n",
"outputTo": "inline",
"outputFormat": "html",
"outputHeaderRow": "true",
"encoding": "auto",
"headerRows": 5,
"rowCount": 1,
"delimiterChar": ",",
"enclosureChar": "\"",
"ignoreRows": [
{
"item": "column",
"name": "Date",
"condition": "white"
},
{
"item": "column",
"name": "Date",
"condition": "nomatch",
"value": "/^[0-9]/"
}
],
"records": [
{
"fields": [
{
"name": "date",
"comprising": [
{
"item": "column",
"column": "Date"
}
],
"options": [
{
"item": "convertToDate",
"errorOnType": "true"
}
]
},
{
"name": "details",
"comprising": [
{
"item": "column",
"column": "Transaction type"
},
{
"item": "text",
"text": " "
},
{
"item": "column",
"column": "Description"
}
]
},
{
"name": "amount",
"comprising": [
{
"item": "column",
"column": "Paid out"
}
],
"options": [
{
"item": "omitIf",
"test": "value",
"condition": "empty"
},
{
"item": "ignoreCurrency",
"currencies": "£$¥€,"
},
{
"item": "convertToNumber",
"negate": "true"
}
]
},
{
"name": "amount",
"comprising": [
{
"item": "column",
"column": "Paid in"
}
],
"options": [
{
"item": "omitIf",
"test": "value",
"condition": "empty"
},
{
"item": "ignoreCurrency",
"currencies": "£$¥€,"
},
{
"item": "convertToNumber"
}
]
}
]
}
],
"recipeVersion": 3
}