Description
smart_importerfilters training data from a single account, obtained by calling the importer's
file_account()`, as discussed in #30. This presents two questions:
-
(For my understanding): shouldn't it filter out for accounts in each transaction instead of assuming the importer will always have one single account (that
file_account()
returns) as a part of every transaction? -
My question: There are cases where
file_account()
is not the account we want to train by. The use case at least a couple of users have run into (including myself) is here. In short, when importing using a commodity-leaf structure, postings look like this:
2020-02-20 * "Transfer"
Assets:Investments:Fidelity:USD -20 USD
<to_be_predicted>
file_account()
must return Assets:Investments:Fidelity
(without the :USD
), so bean-file
has the correct directory to file this against. However, this means that smart_importer
fails to find training data, since that account doesn't exist.
Is there a config option or alternative I'm missing here? If this is a valid use case, I'm happy to help figure out a solution + patch.
Activity