Version 2.3.6. Running bean-report file.beancount balances on this:
---
2022-12-05 open Assets:Stock
2022-12-05 open Assets:Cash
2022-12-05 * ""
Assets:Stock 3 STOCK { 50 USD }
Assets:Cash -150 USD
2022-12-06 * ""
Assets:Stock -3 STOCK { 50 USD }
Assets:Cash 150 USD
; Buy 0.5 shares (broker supports fractional shares).
2022-12-07 * ""
Assets:Stock 0.5 STOCK { 60 USD }
Assets:Cash -30 USD
---
gives an unexpected result:
---
Assets:Cash -30 USD
Assets:Stock 0 STOCK
---
(Shouldn't the user be able to confidently specify 0.5 STOCK, without
worrying that Beancount will just ignore it only because prior events had
less precision?)
BTW, commenting out the middle directive:
---
2022-12-05 open Assets:Stock
2022-12-05 open Assets:Cash
2022-12-05 * ""
Assets:Stock 3 STOCK { 50 USD }
Assets:Cash -150 USD
; 2022-12-06 * ""
; Assets:Stock -3 STOCK { 50 USD }
; Assets:Cash 150 USD
; Buy 0.5 shares (broker supports fractional shares).
2022-12-07 * ""
Assets:Stock 0.5 STOCK { 60 USD }
Assets:Cash -30 USD
---
and the 0.5 STOCK is no longer ignored:
---
Assets:Cash -180 USD
Assets:Stock 3.5 STOCK
---
--
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 view this discussion visit
https://groups.google.com/d/msgid/beancount/7c891999-aad1-4c73-a134-704f615a2a4en%40googlegroups.com.