Issue #354: Lot reduction fails on positive entry (blais/beancount)

14 views
Skip to first unread message

Ilya Kuzmich

unread,
Dec 22, 2018, 6:03:20 AM12/22/18
to bean...@googlegroups.com
New issue 354: Lot reduction fails on positive entry
https://bitbucket.org/blais/beancount/issues/354/lot-reduction-fails-on-positive-entry

Ilya Kuzmich:

Booking will fail to match positive at cost entry against negative one, if negative comes first.

Sample journal:

```
option "booking_method" "FIFO"
plugin "beancount.plugins.auto"

1970-01-01 txn "remove"
Assets:Foo -1 AA { 1 USD }
Assets:Bar

1970-01-01 txn "add"
Assets:Foo 2 AA { 1 USD }
Assets:Bar
```

It's not a problem usually, unless "remove" and "add" tx's are in different files, and "remove" sorted first by the lineno.


Reply all
Reply to author
Forward
0 new messages