5. Bleep Bleep: Only subtracting one "item cost"


5.Bleep Bleep

I am having trouble understanding how the voidLastTransactionAmount function voids the whole transaction.

The voidLastTransationAmount only subtracts 1 itemcost but we scanned in 4 of the items?

Replace this line with your code.


If you scanned 4 items,
the itemCost would have been (quantity * item)
thus the lastTransactionAmount would have been the 4 items and not as you assume 1 item....


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.