A Halfords employee stole electronic stock from the auto specialists and sold it on eBay for more than a year, York Magistrates' Court heard.