7 ms·
I once introduced a bug that squared each customer's order quantity. Order 8 of the thing, we shipped 64. Oops. Nutshell: The items were sold in bundles. To
by adamswann 6y ago
I once introduced a bug that squared each customer's order quantity.
Order 8 of the thing, we shipped 64. Oops.
Nutshell: The items were sold in bundles. To arrive at the quantity to ship, you multiply the quantity of bundles ordered by the quantity of each item in the bundle (just 1 or 2 in most cases). I got my variables confused and multiplied the order quantity by itself.
Not my best day.
- stevesimmons 6y agoI once saw this in a downstream system that if an order was entered calculated price with the square of the quantity. And the order in question was for 1000 400oz bars of gold (value $700k each).
- bombcar 6y agoThis can be hard to notice as the square of one is one.