Wrong calculation on salary slip

Earnings are not added correctly on salary slips. Earnings added in the salary structure are the only ones that are calculated. Earnings added later during payroll making are not added to the sum and therefore are not reflected on the salary slips.