Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthakumaran committed Oct 7, 2023
1 parent df817f1 commit 841f14c
Show file tree
Hide file tree
Showing 17 changed files with 252 additions and 252 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
*.backup.*
*.test
docs/lexer/__pycache__/
bun.lockb
Expand Down
16 changes: 11 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,23 @@ hide:
=== ":fontawesome-solid-euro-sign: EURO"

```ledger
commodity €
format €1.000,00

commodity AAPL
format 1.000,00 AAPL

2022/01/01 Salary
Income:Salary:Acme -5,000
Assets:Checking 5,000
Income:Salary:Acme €-5.000
Assets:Checking €5.000

2022/01/03 Rent
Assets:Checking -2,000
Assets:Checking €-2.000
Expenses:Rent

2022/01/07 Investment
Assets:Checking -1,000
Assets:Equity:AAPL 6.452 AAPL @ 154.97€
Assets:Checking €-1.000,02
Assets:Equity:AAPL 6,453 AAPL @ 154,97
```


Expand Down
6 changes: 3 additions & 3 deletions tests/fixture/eur/assets_balance.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"latestPrice": 0,
"xirr": 1.76,
"gainAmount": 1014.95,
"absoluteReturn": 0.1014
"absoluteReturn": 0.1014437708956977
},
"Assets:Checking": {
"group": "Assets:Checking",
Expand All @@ -31,7 +31,7 @@
"latestPrice": 0,
"xirr": 2.17,
"gainAmount": 20,
"absoluteReturn": 0.002
"absoluteReturn": 0.0019989905097926
},
"Assets:Equity:AAPL": {
"group": "Assets:Equity:AAPL",
Expand All @@ -42,7 +42,7 @@
"latestPrice": 0,
"xirr": 2.17,
"gainAmount": 20,
"absoluteReturn": 0.002
"absoluteReturn": 0.0019989905097926
}
}
}
6 changes: 1 addition & 5 deletions tests/fixture/eur/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
{
"name": "main.ledger",
"content": "commodity EUR\n\tformat 1.000,00 EUR\n\n2022/01/01 Salary\n Income:Salary:Acme -11.000,00 EUR\n Assets:Checking 11.000,00 EUR\n\nP 2022/01/05 00:00:00 AAPL 10.005,05 EUR\nP 2022/01/15 00:00:00 AAPL 10.025,05 EUR\n\n2022/01/05 Buy stock\n Assets:Equity:AAPL 1 AAPL @ 10.005,05 EUR\n Assets:Checking -10.005,05 EUR\n",
"versions": [
"main.ledger.backup.2023-10-07-03-07-18.236",
"main.ledger.backup.2023-10-07-03-06-29.721",
"main.ledger.backup.2023-10-07-03-04-56.697"
],
"versions": [],
"operation": ""
}
],
Expand Down
Loading

0 comments on commit 841f14c

Please sign in to comment.