Go to the Edit menu and click Preferences.
In the Preferences window, click Accounting in the list on the left.
Click the Company Preferences tab.
Make sure that the Use class tracking checkbox is selected. If
the checkbox is empty, select it.
In the Preferences window, click Payroll & Employees in the list on the left.
For "Assign one class per," select Earnings item.