Suggestions for external tools to generate FIFO lots transactions for ledger?

2017-08-12 Thread Joel Swanson
Hello, I've got a bunch of commodity transactions in ledger format. I know how to use the --lots option in my balance reports to show my inventory of lots. I know that ledger doesn't edit my data files (a feature!) and doesn't force a particular method of reducing inventory lots (another featur

Re: How many Emacs, Vim, Sublime, Atom.io users here?

2017-08-25 Thread Joel Swanson
Emacs Le mardi 21 février 2017 20:00:21 UTC+1, James a écrit : > > Hi, > I just want to conduct a quick survey here. Could everyone here advise > which is their preferred text editor for ledger input? > > I am currently Vim and am having a hard time making rapid entries > (because auto complet

using python to manipulate my ledger data

2017-08-25 Thread Joel Swanson
I'm trying to understand section 13.1 in the Ledger manual, on basic data traversal with python. Following the example, import ledger for xact in ledger.read_journal("sample.dat").xacts(): for post in xact.posts(): print "Transferring %s to/from %s" % (post.amount, po

Re: using python to manipulate my ledger data

2017-08-30 Thread Joel Swanson
ipulated the posts, I can print the output in ledger format to stout? I might be in over my head, but figured I'd try. Thanks in advance, Joel Le samedi 26 août 2017 10:51:13 UTC+2, Marco Bakera a écrit : > > Joel Swanson schrieb am 25.08.2017 um 13:56: > > > > | &

Re: using python to manipulate my ledger data

2017-08-30 Thread Joel Swanson
beginning level. Joel Le mercredi 30 août 2017 21:01:23 UTC+2, John Wiegley a écrit : > > >>>>> "JS" == Joel Swanson > writes: > > SJ> I'd like to modify those posts by inserting the {price unit} [date] > lots > SJ> information, adding nece

How do ledger price files/entries affect multi-currency lot inventories?

2017-09-01 Thread Joel Swanson
Hello ledger community, I'm trying to find the best way to use ledger to track my transactions, and to calculate capital gains/losses. Is it possible to book commodities in one currency, sell them in another on a later date, and providing have ledger correctly calculate the capital gains/losses

new debian ledger install, can't find ledger.so

2018-05-08 Thread Joel Swanson
Hello, I'm attempting to set my python PYTHONPATH to include the directory with ledger.so. However, I can't find that file anywhere. If what I need to do is compile ledger from the github source, what options do I need to include to be sure that python support gets backed in? I've hunted thro

Re: new debian ledger install, can't find ledger.so

2018-05-08 Thread Joel Swanson
ardi 8 mai 2018 23:30:15 UTC+2, Joel Swanson a écrit : > > Hello, > > I'm attempting to set my python PYTHONPATH to include the directory with > ledger.so. > > However, I can't find that file anywhere. If what I need to do is compile > ledger from the github source,

python and ledger

2019-03-19 Thread Joel Swanson
Hello fellow ledger users, I'm looking to learn from any of you have extended ledger with python. Also, I've got a specific question. The ledger docs 3.0 state in 13.4, "Any Python functions you define this way become immediately available as valexpr functions." What's a valexpr function? I'm

Re: python and ledger

2019-03-27 Thread Joel Swanson
Thanks, I'll check it out. Le mer. 27 mars 2019 à 05:32, John Wiegley a écrit : > > >>>>> "JS" == Joel Swanson writes: > > JS> What's a valexpr function? I'm trying to understand what sorts of things I > JS> could do by embeddin

Re: python and ledger

2019-03-30 Thread Joel Swanson
7;t handle my use case of sometimes reducing lots to a different currency than what I originally purchased the commodity with.) Le mercredi 27 mars 2019 05:32:32 UTC+1, John Wiegley a écrit : > > >>>>> "JS" == Joel Swanson > writes: > > JS> What

Stock/Commodities fee posting positions and cost basis

2020-05-07 Thread Joel Swanson
Hello ledger devs & users, Does posting order affect stock or commodity cost basis in Ledger? Looking at the first example in section 4.5.2 of the documentation[1], one finds this example: 2004/05/01 Stock purchase > Assets:Broker 50 AAPL @ $30.00 > Expenses:Broker:C