A company has been sentenced after a worker lost his middle two fingers while trying to repair its main entrance gate.