Tony Grosinger
461812eace
Description, date, and total fields are functional. Next step is to start adding structure to the form and adding a window to the side which will show previous similar transactions and autocomplete suggestions. Arrow keys will be able to auto-fill the current field from the selected suggestion.
458 lines
11 KiB
JSON
458 lines
11 KiB
JSON
[
|
|
{
|
|
"tcode": "",
|
|
"tcomment": "",
|
|
"tdate": "2008-01-01",
|
|
"tdate2": null,
|
|
"tdescription": "income",
|
|
"tindex": 1,
|
|
"tpostings": [
|
|
{
|
|
"paccount": "assets:bank:checking",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 150,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": 1.5
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "1",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "income:salary",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": -150,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": -1.5
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "1",
|
|
"ptype": "RegularPosting"
|
|
}
|
|
],
|
|
"tprecedingcomment": "",
|
|
"tsourcepos": [
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 1,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
},
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 4,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
}
|
|
],
|
|
"tstatus": "Unmarked",
|
|
"ttags": []
|
|
},
|
|
{
|
|
"tcode": "",
|
|
"tcomment": "",
|
|
"tdate": "2008-06-01",
|
|
"tdate2": null,
|
|
"tdescription": "gift",
|
|
"tindex": 2,
|
|
"tpostings": [
|
|
{
|
|
"paccount": "assets:bank:checking",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 2,
|
|
"decimalPlaces": 0,
|
|
"floatingPoint": 2
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "2",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "income:gifts",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": -2,
|
|
"decimalPlaces": 0,
|
|
"floatingPoint": -2
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "2",
|
|
"ptype": "RegularPosting"
|
|
}
|
|
],
|
|
"tprecedingcomment": "",
|
|
"tsourcepos": [
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 5,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
},
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 8,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
}
|
|
],
|
|
"tstatus": "Unmarked",
|
|
"ttags": []
|
|
},
|
|
{
|
|
"tcode": "",
|
|
"tcomment": "",
|
|
"tdate": "2008-06-02",
|
|
"tdate2": null,
|
|
"tdescription": "save",
|
|
"tindex": 3,
|
|
"tpostings": [
|
|
{
|
|
"paccount": "assets:bank:saving",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 345,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": 3.45
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "3",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "assets:bank:checking",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": -345,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": -3.45
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "3",
|
|
"ptype": "RegularPosting"
|
|
}
|
|
],
|
|
"tprecedingcomment": "",
|
|
"tsourcepos": [
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 9,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
},
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 12,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
}
|
|
],
|
|
"tstatus": "Unmarked",
|
|
"ttags": []
|
|
},
|
|
{
|
|
"tcode": "",
|
|
"tcomment": "",
|
|
"tdate": "2008-06-03",
|
|
"tdate2": null,
|
|
"tdescription": "eat & shop",
|
|
"tindex": 4,
|
|
"tpostings": [
|
|
{
|
|
"paccount": "expenses:food",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 125,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": 1.25
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "4",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "expenses:supplies",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 475,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": 4.75
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "4",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "assets:cash",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": -600,
|
|
"decimalPlaces": 2,
|
|
"floatingPoint": -6
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "4",
|
|
"ptype": "RegularPosting"
|
|
}
|
|
],
|
|
"tprecedingcomment": "",
|
|
"tsourcepos": [
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 13,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
},
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 17,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
}
|
|
],
|
|
"tstatus": "Cleared",
|
|
"ttags": []
|
|
},
|
|
{
|
|
"tcode": "",
|
|
"tcomment": "",
|
|
"tdate": "2008-12-31",
|
|
"tdate2": null,
|
|
"tdescription": "pay off",
|
|
"tindex": 5,
|
|
"tpostings": [
|
|
{
|
|
"paccount": "liabilities:debts",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": 1,
|
|
"decimalPlaces": 0,
|
|
"floatingPoint": 1
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "5",
|
|
"ptype": "RegularPosting"
|
|
},
|
|
{
|
|
"paccount": "assets:bank:checking",
|
|
"pamount": [
|
|
{
|
|
"acommodity": "$",
|
|
"aprice": null,
|
|
"aquantity": {
|
|
"decimalMantissa": -1,
|
|
"decimalPlaces": 0,
|
|
"floatingPoint": -1
|
|
},
|
|
"astyle": {
|
|
"ascommodityside": "L",
|
|
"ascommodityspaced": false,
|
|
"asdecimalpoint": ".",
|
|
"asdigitgroups": null,
|
|
"asprecision": 2
|
|
}
|
|
}
|
|
],
|
|
"pbalanceassertion": null,
|
|
"pcomment": "",
|
|
"pdate": null,
|
|
"pdate2": null,
|
|
"poriginal": null,
|
|
"pstatus": "Unmarked",
|
|
"ptags": [],
|
|
"ptransaction_": "5",
|
|
"ptype": "RegularPosting"
|
|
}
|
|
],
|
|
"tprecedingcomment": "",
|
|
"tsourcepos": [
|
|
{
|
|
"sourceColumn": 1,
|
|
"sourceLine": 18,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
},
|
|
{
|
|
"sourceColumn": 25,
|
|
"sourceLine": 20,
|
|
"sourceName": "/workspaces/ledger-tui/examples/simple.ledger"
|
|
}
|
|
],
|
|
"tstatus": "Cleared",
|
|
"ttags": []
|
|
}
|
|
]
|