The company has an almost immeasurably small impact on their profits, and will never be measured anyway.
The cashier is a real human doing a job to put food on the table and has done nothing to deserve it, and may well have been far more hurt by the head office than you.