Duplicates not detected
When checking for duplicates on the server side we compute a min and max date based on the new transactions received.
Min date = oldest transaction - 2 days. See https://framagit.org/kresusapp/kresus/blob/master/server/lib/accounts-manager.js#L417
Max date = newest transaction. See https://framagit.org/kresusapp/kresus/blob/master/server/lib/accounts-manager.js#L426
Then we retrieve the transactions already in database between those two dates. But when doing so we set the hour to midnight UTC: https://framagit.org/kresusapp/kresus/blob/master/server/models/pouch/transactions.js#L184
Result: we will never compare the newest transaction to its equivalent in database because the last one is not retrieved.