mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 11:47:23 +00:00
27 lines
855 B
Plaintext
27 lines
855 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# hledger incomestatement
|
|
|
|
> Show revenue inflows and expense outflows during the report period.
|
|
> Amounts are shown with normal positive sign, as in conventional financial statements.
|
|
> More information: <https://hledger.org/hledger.html#incomestatement>.
|
|
|
|
- Show revenues and expenses (changes in `Revenue` and `Expense` accounts):
|
|
|
|
`hledger {{[is|incomestatement]}}`
|
|
|
|
- Show revenues and expenses each month:
|
|
|
|
`hledger {{[is|incomestatement]}} {{[-M|--monthly]}}`
|
|
|
|
- Show monthly revenues/expenses/totals, largest first, summarised to 2 levels:
|
|
|
|
`hledger {{[is|incomestatement]}} {{[-MTAS|--monthly --row-total --average --sort-amount]}} {{[-2|--depth 2]}}`
|
|
|
|
- Short form of the above, and generate HTML output in `is.html`:
|
|
|
|
`hledger is -MTAS -2 -o is.html`
|