1
0

start a ledger and a finance page

This commit is contained in:
Simon Michael
2024-04-02 19:52:24 -10:00
parent 4e8d2a63e3
commit 18b319abd3
3 changed files with 62 additions and 0 deletions

View File

@@ -10,6 +10,16 @@ clean:
PANDOC?=pandoc PANDOC?=pandoc
# help update finance.md from finance/* (manual edits needed)
finance-md:
( \
echo 'Finances of the Plain Text Accounting org.'; \
echo '<!-- Generated by "make src/finance.md", do not edit directly. -->'; \
echo '```cli'; hledger -f finance/pta.journal bs; echo '```'; \
echo '```cli'; hledger -f finance/pta.journal is; echo '```'; \
echo '```hledger'; hledger -f finance/pta.journal print -x; echo '```'; \
) >src/finance.md
# temporary workaround for cloudflare pages (pandoc is too old in V1, missing in V2) # temporary workaround for cloudflare pages (pandoc is too old in V1, missing in V2)
html-cfp: html-cfp:
pandoc --version || ( \ pandoc --version || ( \

6
finance/pta.journal Normal file
View File

@@ -0,0 +1,6 @@
2024-03-30 begin tracking finances of the plaintextaccounting org.
2024-03-30 Discourse | begin $50/mo hosting at Discourse, with an advance from SM
expenses:hosting $50
liabilities:payable:sm

46
src/finance.md Normal file
View File

@@ -0,0 +1,46 @@
Finances of the Plain Text Accounting org.
<!-- Generated by "make src/finance.md", do not edit directly. -->
```cli
Balance Sheet 2024-03-30
|| 2024-03-30
========================++============
Assets ||
------------------------++------------
------------------------++------------
|| 0
========================++============
Liabilities ||
------------------------++------------
liabilities:payable:sm || $50
------------------------++------------
|| $50
========================++============
Net: || $-50
```
```cli
Income Statement 2024-03-30
|| 2024-03-30
==================++============
Revenues ||
------------------++------------
------------------++------------
|| 0
==================++============
Expenses ||
------------------++------------
expenses:hosting || $50
------------------++------------
|| $50
==================++============
Net: || $-50
```
```hledger
2024-03-30 begin tracking finances of the plaintextaccounting org.
2024-03-30 Discourse | begin $50/mo hosting at Discourse, with an advance from SM
expenses:hosting $50
liabilities:payable:sm $-50
```