From 32ac3657e64955231c9952613b989243416828f7 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 2 Apr 2024 20:00:19 -1000 Subject: [PATCH] finance: show html reports --- Makefile | 7 +++++-- src/finance.md | 45 ++++++++++----------------------------------- 2 files changed, 15 insertions(+), 37 deletions(-) diff --git a/Makefile b/Makefile index cd23982..f42132f 100644 --- a/Makefile +++ b/Makefile @@ -15,8 +15,11 @@ 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 -f finance/pta.journal bs -O html; \ + echo ; \ + hledger -f finance/pta.journal is -O html; \ + echo ; \ echo '```hledger'; hledger -f finance/pta.journal print -x; echo '```'; \ ) >src/finance.md diff --git a/src/finance.md b/src/finance.md index 5be50c5..fa06746 100644 --- a/src/finance.md +++ b/src/finance.md @@ -1,41 +1,16 @@ 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 -``` +

Balance Sheet 2024-03-30

2024-03-30
 
Assets
total0
 
Liabilities
$50
total$50
 
Net:$-50
+

Income Statement 2024-03-30

2024-03-30
 
Revenues
total0
 
Expenses
$50
total$50
 
Net:$-50
```hledger 2024-03-30 begin tracking finances of the plaintextaccounting org.