beansbooks icon indicating copy to clipboard operation
beansbooks copied to clipboard

Duplicate Account Transactions

Open funnylookinhat opened this issue 10 years ago • 0 comments

At extremely high volumes, customer or vendor payments can occasionally create duplicate account_transactions. You can find them with the following:

SELECT transaction_id, account_id, date, amount, transfer, writeoff, COUNT(*) 
FROM account_transactions 
GROUP BY transaction_id, account_id, date, amount, transfer, writeoff
HAVING COUNT(*) > 1

We need to come up with a tool to calibrate transactions generically ( not just payments or form actions ) and add it to the broad calibration script and set of checks.

funnylookinhat avatar Feb 24 '15 22:02 funnylookinhat