TT Business - Enter Salary and Wages

See photo of this page attached. I can't remember if you just enter box 1 of the W2? Or do you add box 12 code D (401k contributions) for total W2 wages? If you are both an officer >2% and shareholder >2%, does it matter which box you enter it in?