New issue 256: Reduction gets confused: A doesn't exist but it complains about B
https://bitbucket.org/blais/beancount/issues/256/reduction-gets-confused-a-doesnt-exist-but
Martin Michlmayr:
It took me a while to figure out what's going on because the error is
misleading. I have 2 DE0002635307 @ 36.67 EUR. And there's 1 DE0002635307 @
32.86 which isn't properly handled because I reduce it before it exists. But
the error I get is about the 2 DE0002635307 @ 36.67 EUR!
```
2000-01-01 open Assets:Investments
2000-01-01 open Equity:Opening-Balance
2000-01-01 open Assets:Transfer
2016-01-01 * "Opening balance"
Assets:Transfer 2 DE0002635307 {36.67 EUR, 2007-09-18}
Equity:Opening-Balance
2016-01-21 * "Transfer in"
Assets:Investments 2 DE0002635307 {36.67 EUR, 2007-09-18}
Assets:Transfer -2 DE0002635307 {36.67 EUR, 2007-09-18}
Assets:Investments 1 DE0002635307 {32.86 EUR, 2014-10-24}
Assets:Transfer -1 DE0002635307 {32.86 EUR, 2014-10-24}
2016-01-22 * "Transfer out"
Assets:Transfer 2 DE0002635307 {36.67 EUR, 2007-09-18}
Assets:Investments -2 DE0002635307 {36.67 EUR, 2007-09-18}
```
Error:
```
/home/tbm/t1:15: No position matches "Posting(account='Assets:Transfer',
units=2
DE0002635307, cost=CostSpec(number_per=Decimal('36.67'), number_total=None,
currency='EUR', date=datetime.date(2007, 9, 18), label=None, merge=False),
price=None,
flag=None, meta={'lineno': 16, 'filename': '/home/tbm/t1'})" against balance (-1
DE0002635307 {32.86 EUR, 2014-10-24})
2016-01-22 * "Transfer out"
Assets:Transfer 2 DE0002635307 {36.67 EUR, 2007-09-18}
Assets:Investments -2 DE0002635307 {36.67 EUR, 2007-09-18}
```
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20180326093404.40513.27361%40celery-worker-107.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.