mirror of
https://github.com/lancatlin/mdsh.git
synced 2026-11-08 03:30:12 +08:00
template with sh func
This commit is contained in:
commit
121f5a4511
3 files changed
+69
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
---
|
||||
name: "reports/${from}.md"
|
||||
params:
|
||||
from:
|
||||
required: true
|
||||
to:
|
||||
required: true
|
||||
file:
|
||||
default: ~/.hledger.journal
|
||||
---
|
||||
|
||||
# Finance Report from {from} to {to}
|
||||
|
||||
## Previous status:
|
||||
|
||||
{{hledger -f $file balancesheet -e $from }}
|
||||
|
||||
## Expenses:
|
||||
|
||||
### Expense Summary by Category
|
||||
|
||||
{{hledger -f $file bal expenses -b $from -e $to --depth 3 --sort amount}}
|
||||
|
||||
{{hledger -f $file bal expenses -b $from -e $to --depth 2 --sort amount}}
|
||||
|
||||
## Net Income:
|
||||
|
||||
{{hledger -f $file income -b $from -e $to --monthly}}
|
||||
|
||||
## Ending balance:
|
||||
|
||||
{{hledger -f $file balancesheet -e $to}}
|
||||
Reference in new issue
Block a user