DS 160- Previous employment field

I applied for h1b through employer A when I was on OPT . The petition got rejected . Then I applied for h1b after a year through company B . My petition got approved. Do I need to give details of company A for my previous employement in DS 160 ? The paystub generated by company A was on OPT period . what to do ?