Hi Simon, Hi Martin,thank you very much for the explanations that you added!Regarding beancount: I have read the comparison document you (Martin) had written. I like it very much and I agree with many of the steps you have taken there. At the same time, I am somewhat put off by the lengthy installation process that your documents lay out.
In fact, I'm actually worried that it may not run on Windows at all. You mention wget and ncurses if I remember correctly. How necessary are those? You are developing on Linux or Mac, I suppose?
On Sunday, June 7, 2015 at 1:29:09 AM UTC+8, Martin Blais wrote:On Sat, Jun 6, 2015 at 1:17 PM, Martin Blais <bl...@furius.ca> wrote:On Sat, Jun 6, 2015 at 9:25 AM, Simon Michael <si...@joyful.com> wrote:Welcome Matthias,hledger doesn't currently parse Ledger's {...} prices (with no equals sign). I don't fully understand what those do. The Ledger manual implies they are equivalent to @ (a fluctuating unit price), but what does-50 AAPL {$30.00} @ $50.00mean ?Indeed.In Beancount the semantics of this is that 50 units of "AAPL at $30 cost basis" are added to the inventory, and a price annotation of $50 is present on the posting. The cost basis is the value used in balancing the transaction. The price annotation is not entirely ignored however, it is used by plugins:beancount.ops.implicit_prices: Automatically creates price directives corresponding to these annotations. This fills in values for the in-memory database of prices which is then used in reporting.beancount.plugins.sellgains: Applies a secondary balance check that uses the price instead of the cost basis, and that also ignores any Income postings in the transaction. See the comment at the top of this file for a rationale and examples: https://bitbucket.org/blais/beancount/src/c8cedf46c100d0cb80553b091aff481243ade44d/src/python/beancount/plugins/sellgains.py?at=defaultThis additional check finds many errors in data entry.I clarified the example in the sellgains plugin that explains how this works; here's an improved version:Finally, when you write custom scripts against your data you can find the price annotations on the Python API and use them in creative ways if you want.Currently in hledger all prices are fixed, like Ledger's {=...} prices (which we do parse). So I think there's no practical way to track fluctuating prices in hledger without implementing https://github.com/simonmichael/hledger/issues/131 (which should be not too hard).On Jun 6, 2015, at 3:36 AM, ma.k...@gmail.com wrote:Hi,I'm trying to figure out whether I should use ledger, hledger or beancount. Hledger has a big head start for me because the binaries you provide make it so much easier to get started, especially on Windows systems.Now I'm wondering what the state of capital gains tracking is in hledger.Is it completely impossible with the lack of fluctuating prices?Or can I make it work by only tracking differences in sales prices?I'm looking at the following example from the ledger manual (see below)Running hledger -f test.dat balance, I receive the error "unexpected {" referring to the { in the sale.is there any way to make something like this work at the moment? What are the plans for this?Best regards,Matthias2004/05/01 Stock purchaseAssets:Broker 50 AAPL @ $30.00Expenses:Broker:Commissions $19.95Assets:Broker $-1,519.952005/08/01 Stock saleAssets:Broker -50 AAPL {$30.00} @ $50.00Expenses:Broker:Commissions $19.95Income:Capital Gains $-1,000.00Assets:Broker $2,480.05--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
(Has anyone on the list installed Beancount on Windows? What was your experience like?)
Install the latest Cygwin. This may take a while (it downloads a lot of stuff), but it is well worth it in any case. But before you kick off the install, make sure the following packages are all manually enabled in the interface provided by setup.exe (they’re not selected by default):
python3
python3-setuptools
mercurial
make
gcc-core
flex
bison
wget
Start a new Cygwin bash shell (there should be a new icon on your desktop) and install the pip3 installer tool by running this command:
easy_install3.3 pip
At this point, you should be able to follow the regular instructions from the install file.