Hi, I'm trying to break my ledger journal into multiple files to try and 
reduce my scrolling everytime I need to add a new transaction.

Before I had an accounts.ldgr file with my periodic transactions at the 
very top and every posting just laid chronologically afterwards, with a 
comment indicating the beginning of each month.

I then migrated to having a folder called 2015 with 01-12.ldgr files for 
each month and a settings.ldgr for my periodic transactions and outside of 
that folder I have a 2015.ldgr file with the following content:

include ./2015/settings.ldgr
include ./2015/[0-9]{2}.ldgr


I then tried running a few reports and it seems that --budget is not 
working properly, this is what I get when running:

ledger -p "this year" -f ./2015.ldgr reg ^expenses:food --monthly --budget
15-Jan-01 - 15-Jan-31           expenses:food               £203.78     
 £203.78
15-Feb-01 - 15-Feb-28           expenses:food               £325.08     
 £528.86
15-Mar-01 - 15-Mar-31           expenses:food               £284.91     
 £813.77
15-Apr-01 - 15-Apr-30           expenses:food               £-40.18     
 £773.59
15-May-01 - 15-May-31           expenses:food                £-9.39     
 £764.20
15-Jun-01 - 15-Jun-30           expenses:food               £125.58     
 £889.78
15-Jul-01 - 15-Jul-31           expenses:food                £65.33     
 £955.11
15-Aug-01 - 15-Aug-31           expenses:food              £-157.90     
 £797.21
15-Sep-01 - 15-Sep-30           expenses:food               £-36.23     
 £760.98
15-Oct-01 - 15-Oct-31           expenses:food              £-141.48     
 £619.50
15-Nov-01 - 15-Nov-30           expenses:food                £84.94     
 £704.44
15-Dec-01 - 15-Dec-31           expenses:food               £-90.43     
 £614.01


But if I run it against my single accounts.ldgr file I get:

ledger -p "this year" -f ./accounts.ldgr reg ^expenses:food --monthly 
--budget
15-Jan-01 - 15-Jan-31           expenses:food              £-146.22     
£-146.22
15-Feb-01 - 15-Feb-28           expenses:food               £-24.92     
£-171.14
15-Mar-01 - 15-Mar-31           expenses:food               £-65.09     
£-236.23
15-Apr-01 - 15-Apr-30           expenses:food               £-40.18     
£-276.41
15-May-01 - 15-May-31           expenses:food                £-9.39     
£-285.80
15-Jun-01 - 15-Jun-30           expenses:food               £125.58     
£-160.22
15-Jul-01 - 15-Jul-31           expenses:food                £65.33     
 £-94.89
15-Aug-01 - 15-Aug-31           expenses:food              £-157.90     
£-252.79
15-Sep-01 - 15-Sep-30           expenses:food               £-36.23     
£-289.02
15-Oct-01 - 15-Oct-31           expenses:food              £-141.48     
£-430.50
15-Nov-01 - 15-Nov-30           expenses:food                £84.94     
£-345.56
15-Dec-01 - 15-Dec-31           expenses:food               £-90.43     
£-435.99


If you look closely, the multi-file version is not matching Jan, Feb and 
March's expenses against my budget, instead it's showing the total expense. 
Any idea why this would happen? 
If I run a balance for each month I get the same results on both settings, 
which is: 

ledger -f ./2015.ldgr bal ^expenses:food -p <month>
jan £203.78  expenses:food
feb £325.08  expenses:food
mar £284.91  expenses:food
apr £309.82  expenses:food
may £340.61  expenses:food
jun £475.58  expenses:food
jul £415.33  expenses:food
aug £192.10  expenses:food
sep £313.77  expenses:food
oct £208.52  expenses:food
nov £434.94  expenses:food
dec £259.57  expenses:food


I don't mind keeping this file as a single one now, since the year is 
nearly over and this was my first year using Ledger, but I would like to 
make next year's journalling more effective and possibly more smart as well.

TIA,
Leo.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to