xkikeg / okane

Plain text accounting software supporting ledger-cli format using Rust
MIT License
4 stars 0 forks source link

Support automated lot price inferrence #145

Open xkikeg opened 4 months ago

xkikeg commented 4 months ago

Currently there's no automated support for lot price computation, but that's nice to have.

Difficulties

Ambiguous ways

There are several ways to compute the lot price. By the article about 棚卸資産, there are

(Others I'm not sold to support)

Explicitness

Another difficulty is the clarity. We should write it back to the original file so that we can have a explicit understanding.

Ambiguous "income"

It's trivial if the commodity is always bought with the certain currency and sold on the same one. But it's more hard to tell if the transaction has profit or not for multi-currency case.