The former manager of the Nisa in Halifax College has been convicted of stealing £3,857.80.
Martin James Stubbs, 46, pleaded guilty to stealing money from the shop on five separate occasions by not banking all of the takings.
The thefts occurred between January 6 and January 24.
Stubbs later confessed his crimes to his wife and the police after his conscience prevented him from stealing any more.
He had been hiding debts of £250,000 from his wife, including a £133,000 mortgage.
Keith Haggerty, defending, said Stubbs had since reached an initial agreement with his creditors and was hoping to avoid bankruptcy.
District judge Adrian Lower told him: “[Confessing], I am sure, must have taken you, as a man of 46 with no previous history of offending a great deal of courage to do. It was the right thing to do.”
He later said: “I can only wish you the best in getting your life back in order.”
Stubbs lost his job as a result of his thefts. He has been sentenced to 240 hours’ unpaid work and must repay the money he stole.