johannesgerer / buchhaltung

Smart tools for the ledger universe
http://johannesgerer.com/buchhaltung
MIT License
97 stars 8 forks source link

`add` again suggests tranactions that have been offset #35

Open ariep opened 5 years ago

ariep commented 5 years ago

Generally, when you have buchhaltung added an offsetting transaction to an imported one, it will no longer be suggested in a subsequent run of buchhaltung add. However, this seems to break down when you change the title of the offsetting transaction (using the t command during add).

How is buchhaltung supposed to match offsetting transactions to the corresponding imported one? Is the title used for this?

From a quick reading of the code, the "status" (cleared/unmarked) of transactions is used when deciding which ones to suggest for add. Is add supposed to add a "cleared" flag (*) to the imported transaction when it creates a corresponding offsetting one? Apparently it doesn't do that at the moment.