A Passing Balance Test Can Hide a Broken Invoice
A brake shop charges $562.72 for a repair. The customer paid the $85 diagnostic fee at drop-off, and that payment belongs to the same invoice. The card reader at pickup should ask for $477.72. Here’s a bug that survives an assertion on the balance alone. One implementation records a $562.72 sale and an $85 payment. Another quietly reduces the sale to $477.72 and records no payment. Both can…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.