Note that I'm running hledger version 1.12 on Linux Mint 20.3. I plan to soon upgrade my computer hardware (new M.2 SSD!), install the latest LTS release of Mint, and install a more recent version of hledger. But alas for now, here I am.
I did hledger close and generated closing transactions for the year just now ending:
2023/12/26 closing balances
assets:cash -22.80 = 0.00
assets:checking -211.80 = 0.00
equity 3858.00 = 0.00
expenses:communications -221.23 = 0.00
expenses:insurance -1337.50 = 0.00
expenses:legal -1650.00 = 0.00
expenses:officeSupplies -106.67 = 0.00
expenses:profdev -80.00 = 0.00
expenses:travel -228.00 = 0.00
equity:closing balances
and opening transactions for the new 2024 file:
023/12/27 opening balances
assets:cash 22.80 = 22.80
assets:checking 211.80 = 211.80
equity -3858.00 = -3858.00
expenses:communications 221.23 = 221.23
expenses:insurance 1337.50 = 1337.50
expenses:legal 1650.00 = 1650.00
expenses:officeSupplies 106.67 = 106.67
expenses:profdev 80.00 = 80.00
expenses:travel 228.00 = 228.00
equity:opening balances
Now I'm a bit puzzled because
hledger -f ASC_2024.journal is
yields the following, making it look like I had 2023's expenses in 2024:
Income Statement 2023/12/27
|| 2023/12/27
=========================++============
Revenues ||
-------------------------++------------
-------------------------++------------
||
=========================++============
Expenses ||
-------------------------++------------
expenses:communications || 221.23
expenses:insurance || 1337.50
expenses:legal || 1650.00
expenses:officeSupplies || 106.67
expenses:profdev || 80.00
expenses:travel || 228.00
-------------------------++------------
|| 3623.40
=========================++============
Net: || -3623.40
Do I perhaps need to use the -b YYYY-01-01 flag with every report command, to get only the year I want, and exclude the opening balance transaction? I can see that getting tedious for the next 12 months.
Thanks.
--
Chris Ryan
rya...@fastmail.co.uk