Balance error with inferred amount

60 views
Skip to first unread message

Erik

unread,
Jan 17, 2022, 4:01:42 AM1/17/22
to Beancount
I have this in my ledger:

2017-02-25 * "Hooli GSU Vest Event"
  Assets:US:Schwab:Hooli               1 HOOL {828.64 USD}
  Income:Salary:TY2017:Hooli:GSU     CHF @ 1.007753 USD
  Assets:US:Hooli:Unvested:C123456  -1 HOOL.UNVEST
  Expenses:Hooli:Vested              1 HOOL.UNVEST

/config/beancount/schwab.beancount:81:      Transaction does not balance: (0.00501822 USD)

Why doesn't this balance? Shouldn't the amount going to row 2 be determined so that the transaction does balance?

I'm using 0.005 default inferred tolerance for both USD and CHF, and I am using Beancount version 2.3.4.

Thanks,
Erik

Martin Blais

unread,
Jan 30, 2022, 10:36:11 AM1/30/22
to Beancount
Works for me

** Transaction Id --------------------------------

Hash:33752ecb8bea03302f9f5c691cf34f8a
Location: /home/blais/q/beanbugs/user/erikhenrikssn/2022-01-30.beancount:3


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

  Assets:US:Schwab:Hooli                                                            

  Income:Salary:TY2017:Hooli:GSU                                                    

  Assets:US:Hooli:Unvested:C123456                                                  

  Expenses:Hooli:Vested                                                              


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


2017-02-25 * "Hooli GSU Vest Event"
  Assets:US:Schwab:Hooli             1 HOOL {828.64 USD}   ;
  Income:Salary:TY2017:Hooli:GSU       CHF @ 1.007753 USD  ;    USD
  Assets:US:Hooli:Unvested:C123456  -1 HOOL.UNVEST         ; -1 HOOL.UNVEST
  Expenses:Hooli:Vested              1 HOOL.UNVEST         ;  1 HOOL.UNVEST


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


2017-02-25 * "Hooli GSU Vest Event"
  Assets:US:Schwab:Hooli                                         1 HOOL {828.640000 USD, 2017-02-25}  ;                         828.64 USD
  Income:Salary:TY2017:Hooli:GSU    -822.2649796130599462368258889 CHF @ 1.007753 USD                 ; -828.6400000000000000000000000 USD
  Assets:US:Hooli:Unvested:C123456                              -1 HOOL.UNVEST                        ;                             -1 HOOL.UNVEST
  Expenses:Hooli:Vested                                          1 HOOL.UNVEST                        ;                              1 HOOL.UNVEST


** Residual and Tolerances --------------------------------

Basis: (828.64 USD)


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

* Assets:US:Schwab:Hooli                              1 HOOL {828.64 USD, 2017-02-25}

* Income:Salary:TY2017:Hooli:GSU                   -822.2649796130599462368258889 CHF

* Assets:US:Hooli:Unvested:C123456                                     -1 HOOL.UNVEST

* Expenses:Hooli:Vested                                                 1 HOOL.UNVEST



Use bean-doctor context to figure out why.


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/76039ce4-cb03-432b-9468-1eecb01fb1edn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages