Hello,  :)

  I'm using the current beancount version from github.

  I have edited some of the below to remove extra lines which
don't really show the point I'm asking about...


  For some reason (I haven't touched these transactions in months) but
now when I'm running a balance report this transaction comes up as an
error:

file.bc:12052:   No position matches "Posting(account='Assets:ANT', units=-100 
ANT, cost=CostSpec(number_per=Decimal('12.3525'), number_total=None, 
currency='USD', date=datetime.date(2000, 6, 8), label='20000608-001', 
merge=False), price=12.3525 USD, flag=None, meta={'filename': 'file.bc', 
'lineno': 12060})" against balance (100 ANT {5.9261242275 USD, 2000-06-08, 
"20000608-001"})

   2013-01-02 * "Adjust Basis (ANT)"
     Assets:ANT                -100 ANT {12.3525 USD, 2000-06-08, 
"20000608-001"} @ 12.3525 USD
     Assets:ANT                 100 ANT {5.9261242275 USD, 2000-06-08, 
"20000608-001"} @ 5.9261242275 USD



  When I run bean-doctor on the line it reports:

bean-doctor context file.bc 12052
** Transaction Id --------------------------------

Location: file.bc:12052


** Balances before transaction --------------------------------

  Equity:ANT                                         1372.5 USD

  Assets:ANT       100 ANT {12.3525 USD, 2000-06-08, "20000608-001"}


** Unbooked Transaction --------------------------------

2013-01-02 * "Adjust Basis (ANT)"
  Assets:ANT          -100 ANT {12.3525 USD, 2000-06-08, "20000608-001"} @ 
12.352500000000000 USD      ;                  
  Assets:ANT           100 ANT {5.9261242275 USD, 2000-06-08, "20000608-001"} @ 
5.926124227500000 USD  ;                  


** Transaction --------------------------------

2013-01-02 * "Adjust Basis (ANT)"
  Assets:ANT          -100 ANT {12.35 USD, 2000-06-08, "20000608-001"} @ 
12.352500000000000 USD  ;     -1235.2500 USD
  Assets:ANT           100 ANT {5.93 USD, 2000-06-08, "20000608-001"} @ 
5.926124227500000 USD    ; 592.6124227500 USD


** Balances after transaction --------------------------------


  It looks like the precision is somehow being lost?

  Thanks for any ideas on how to fix.  :)


  fin

-- 
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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/msbs9k-lj5.ln1%40anthive.com.

Reply via email to