And the register registers every sold item, so unless the cashier fakes the beep sound and the customer ignores the missing receipt, it won’t work since the till would be short. And even if the cashier bypasses the register entirely, they could keep change outside the till if they want to pocket money.
In my experience, cancelling a full transaction needs authorization from the supervisor via key or employee card swipe.