Thanks, guys. (I eventually moved the accounts to the right side as ledger 
does.)

The sort feature mainly works with the scheduler feature, although also is 
nice just to keep things in order.

Rather than using ledger's budgeting feature, I like how other programs 
I've used allow you to enter future recurring transactions up to N days 
ahead.

ledgerbil's scheduler uses a journal file that is a valid ledger file, but 
uses a comment line to define a recurrence:

2018/03/17 chop chop hair
    ;; schedule ; weekly ;; every 6 weeks
    e: misc: haircuts
    l: credit card: mega                    $-18

When you run the scheduler it does all the math and adds the entries to the 
end of a regular journal file (without the comment line) and then sorts 
that file to put them all in order.

I have a commit script that validates the ledger file is valid, and then 
uses another ledgerbil feature to find the next scheduled date and decide 
if it should run the scheduler, outputting something like if so:

next scheduled date: 2018/04/06 (39 days)
Schedule file (enter days = 40):
    2018-04-06 johnny paycheck
    
Then when I check the register for the account that handles my main cash 
flow, I can verify there is enough money to cover expenses for the next 
month+.

Thanks for your question! I'm quite happy working on this as a personal 
program but would be happy if others found it useful. The reason I say it's 
limited to my own usage is that I generally develop and test with ledger 
features in mind that I'm using, and I probably use a small subset of 
ledger's bounty. :-) I do keep in mind other things I see in the ledger 
docs, but I certainly haven't accounted for many things.

Scott


On Sunday, February 25, 2018 at 2:26:27 AM UTC-6, Jostein Berntsen wrote:
>
> On 20.02.18,22:04, Scott Carpenter wrote: 
> > My ledgerbil python program is somewhat limited to my own usage, but I'm 
> > pleased with this "grid" report: 
> > 
> > $ ledgerbil grid expenses 
> >                                                           2017           
> > 2018         total 
> > expenses: car: gas                                      $ 0.00       $ 
> > 17.37       $ 17.37 
> > expenses: car: maintenance                              $ 0.00        $ 
> > 6.50        $ 6.50 
> > expenses: food: dining out                              $ 0.00       $ 
> > 42.17       $ 42.17 
> > expenses: food: groceries                              $ 34.63       $ 
> > 57.40       $ 92.03 
> > expenses: healthcare: medical insurance               $ 463.78        $ 
> > 0.00      $ 463.78 
> > expenses: home: stuff: in                              $ 10.00        $ 
> > 0.00       $ 10.00 
> > expenses: taxes: federal                              $ 342.92        $ 
> > 0.00      $ 342.92 
> > expenses: taxes: medicare                              $ 60.90        $ 
> > 0.00       $ 60.90 
> > expenses: taxes: social security                      $ 260.40        $ 
> > 0.00      $ 260.40 
> > expenses: taxes: state                                $ 253.32        $ 
> > 0.00      $ 253.32 
> >                                                   ------------   
> > ------------  ------------ 
> >                                                     $ 1,425.95      $ 
> > 123.44    $ 1,549.39 
> > 
> > 
> https://github.com/scarpent/ledgerbil/blob/master/ledgerbil/ledgershell/grid.py
>  
> > 
>
> This looks very nice. Do you have examples for other use cases for your 
> ledgerbil program like the sort feature? 
>
>
> Jostein 
>
>
>
>

-- 

--- 
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