beancount / beancount

Beancount: Double-Entry Accounting from Text Files.
http://beancount.github.io/
GNU General Public License v2.0
3.88k stars 316 forks source link

option "account_rounding" "Equity:RoundingError" does not work for one transaction #805

Closed flowerbug closed 9 months ago

flowerbug commented 9 months ago

The following fails to balance even if I use the option in my ledger.

option "account_rounding" "Equity:RoundingError"

2020-04-11 * "Split 2 FOR 1" Assets:ANT -100 ANT {9.73333333333 USD, 1999-01-11, "19920619-001"} @ 9.73333333333 USD Assets:ANT 200 ANT {4.86666666666 USD, 2020-04-11, "20200411-001"}

If I explicitly supply the line Equity:RoundingError 0.00000000100 USD

then it does balance, but that is what I thought the option was supposed to do?

I am using whatever defaults beancount uses for accuracy specifications.

The only other plugins or options I'm using it makes no difference for this issue if I have them enabled or included or not.

flowerbug commented 9 months ago

Found the issue, the plugin does exist but the PYTHONPATH was not being included for some reason. Once I set the option to include that path it then worked again as it should.

As a side issue that means that when specifying a plugin that was not found no error was issued.