Debug an incorrect invoice total
An importer gives each invoice line one unit whenever the quantity is missing. A row that explicitly sets the quantity to zero is also billed as one. Reproduce it with one line priced at 1,200 cents. With a quantity of zero, the total should be zero. With the quantity omitted, it should be 1,200 cents.
Trace where the parser converts the quantity and where it chooses the default. A truthiness check can send both inputs down the same branch. Default only when the quantity is absent, then test zero, an omitted value and a positive value. If negative quantities are allowed for adjustments, ask how those should affect the total.

