On Sun, May 3, 2020 at 3:28 AM david whiting <[email protected]> wrote:
>
> OK, I think I've got a way to do it. I'd be interested to know if this is the 
> right or best way. I think that part of the problem was that I was not 
> thinking about this in the right way and was trying to do too much in one go 
> with historical data. For our club I set an annual budget and want to compare 
> the actual expenditure against the budget at the end of the year. So I really 
> only need to focus on one year at a time. So now in my ledger data file I 
> have:
>
> ~  every 10 years from 2018/08/01 to 2019/07/31
>    Expenses:Refs:T0007-R                        200 GBP
>    Assets:Current Assets:Bank account
>
> (I've used 10 years as an arbitrary time period, it could also have been 2 
> years)
>
> And then when I run my report I use:
>
> ledger -f byfc-ledger-test.dat --budget -b 2018-08-01 -e 2019-08-01 reg 
> Expenses\:Refs\:T0007-R
>
> This then gives me the sort of output I was expecting for that account. Is 
> this the right approach?
>

Am not skilled enough at ledger to comment on your report code but you
do have one flaw that I can see. (In the accounting logic.)
Your 'year' goes from YYYY-08-01 to YYYY+1-07-31 - - - - not to YYYY+1-08-01.

The way your date is written you are including the 1st day of the
following year - - - - which I do not think you want to do.

Regards

-- 

--- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/CAPpdf58izpKhzwjgS9yq4w-_n%2BsMBkYb-D0bM51opYB%2BnNx7ZA%40mail.gmail.com.

Reply via email to