A window fitting company and the principal contractor at a construction site have been fined for safety failings after a worker fell a total of three metres while installing glazed units.