From 18b319abd3d1489cf95ff47c436fb5e961761495 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 2 Apr 2024 19:52:24 -1000 Subject: [PATCH] start a ledger and a finance page --- Makefile | 10 ++++++++++ finance/pta.journal | 6 ++++++ src/finance.md | 46 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 finance/pta.journal create mode 100644 src/finance.md diff --git a/Makefile b/Makefile index 7ca0ae8..cd23982 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,16 @@ clean: PANDOC?=pandoc +# help update finance.md from finance/* (manual edits needed) +finance-md: + ( \ + echo 'Finances of the Plain Text Accounting org.'; \ + echo ''; \ + 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) html-cfp: pandoc --version || ( \ diff --git a/finance/pta.journal b/finance/pta.journal new file mode 100644 index 0000000..a4e09ab --- /dev/null +++ b/finance/pta.journal @@ -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 + diff --git a/src/finance.md b/src/finance.md new file mode 100644 index 0000000..5be50c5 --- /dev/null +++ b/src/finance.md @@ -0,0 +1,46 @@ +Finances of the Plain Text Accounting org. + +```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 + +```