Added the possibility to pass a list of deduction codes as parameter to sum_deductions() and added the amount type based on percentage of gross salary