Hacker News new | ask | show | jobs
by rendaw 1405 days ago
How does it make sure something hasn't been double counted? I assume you mean this situation:

1. Debit for X added 2. Credit for X added 3. Debit for X added again

Then you'll get a discrepancy when you sum them.

In a computerized system though you wouldn't make that mistake though, or else you could make it with double entry accounting too (just, you'll have double credit entries as well).

The only way to prevent duplicates is to associate upstream payment/transaction ids with records and make sure every entry is unique (which can be done for single entry accounting too).