shadowmax31 / crypto_log

This is a cli-tool to log and track the Cost Basis and Capital Gain when transacting with CryptoCurrency
GNU General Public License v2.0
0 stars 0 forks source link

Validate if transactions exists when generating from CSV #10

Closed shadowmax31 closed 3 years ago

shadowmax31 commented 3 years ago

Use transactionExists in transaction.py to check if a transaction already exists before printing it to the generated import file.

At the moment, to make sure transactions are not added twice, we only check if it exists in the buy or sell transaction. This adds transactions that already exist to the history when the CSV is imported. This is not wanted, because it adds junk to the EXPORT function

The generated import file should have a already exists section that shows the transaction that are in the database.