gcflames5 / ynab-splitwise-integration

A tool to copy transactions from Splitiwise to YNAB for budgeting purposes.
26 stars 6 forks source link

Perform Real Synchronization #1

Closed gcflames5 closed 5 years ago

gcflames5 commented 5 years ago

Currently the project just relies on the date of the last transaction it saw in order to determine which transactions are new. It also has limited support for deleting transactions and no support for updating transactions (if a transaction is updated after being added to YNAB this project will just ignore the change).

Rather than storing anything locally, I think the best solution would be to store splitwise transaction IDs in the memos of YNAB transactions. That way, the project is not tied to a given machine and all synchronization data can be obtained by pulling from YNAB. All transactions on Splitwise should be compared with YNAB transactions and discrepancies should be rectified.

For efficiency (and if the user wants this to run very frequently), the number of transactions in the past that are considered by this project should be configurable.

gcflames5 commented 5 years ago

Updating and deleting is now supported.

It seems like Splitwise doesn't set the "updated_at" date when a transaction is deleted, and therefore doesn't come up when searching for recently updated transactions. Currently looking into this, but the feature technically exists so, closed.