本文解答了关于《上海健康管理师补贴》相关内容,同时关于的相关问答本篇文章福途教育网小编也整理了进来,希望对您有帮助。
健康管理师补贴
if (bean.getPension() == 1){
insurePension = 7;
} else {
insurePension = 0;
}
//社保公积金
//报出员工缴纳比例,用四舍五入,可能会有0.04的误,本计算器不做处理
if (total < 8550) {
insureSocial = 0;
} else if (total >=8550 && total < 15256) {
insureSocial = (float)Math.round(total * insureSocialProportion * 10000)/10000;
} else {
insureSocial = 1530.2f;
}
bean.setInsureSocial(insureSocial);
//税前应扣合计(税前总薪资-社保补贴)
float deductibleTotal = 0;
deductibleTotal = total - insurePension;
//个税
float taxable = 0;
if (deductibleTotal <= 3500 ) {
tax = 0;
} else {
float taxTotal = deductibleTotal - 3500;
if (taxTotal <= 1500) {
//适用税率,速算扣除数
tax += taxTotal * 0.03;
taxable = 3500 * 0.03;
} else if (taxTotal >1500 && taxTotal <=4500) {
tax += (taxTotal -1500) * 0.1;
taxable = (3500 * 0.03 + 1500 * 0.1);
} else if (taxTotal >4500 && taxTotal <=9000){
tax += (taxTotal -4500) * 0.2 + 1500 * 0.1 + 3000 * 0.03;
taxable = (3500 * 0.03 + 1500 * 0.1 + 3000 * 0.2);
} else if (taxTotal >9000 && taxTotal <=35000){
tax += (taxTotal -9000) * 0.25 + 4500 * 0.2 + 1500 * 0.1 + 3000 * 0.03;
taxable = (3500 * 0.03 + 1500 * 0.1 + 3000 * 0.2 + 4500 * 0.25);
} else if (taxTotal >35000 && taxTotal <=55000){
tax += (taxTotal -35000) * 0.3 + 26000 * 0.25 + 4500 * 0.2 + 1500 * 0.1 + 3000 * 0.03;
taxable = (3500 * 0.03 + 1500 * 0.1 + 3000 * 0.2 + 4500 * 0.25 + 26000 * 0.3);
} else if (taxTotal >55000 && taxTotal <=80000){
tax += (taxTotal -55000) * 0.35 + 20000 * 0.3 + 26000 * 0.25 + 4500 * 0.2 + 1500 * 0.1 + 3000 * 0.03;
taxable = (3500 * 0.03 + 1500 * 0.1 + 3000 * 0.2 + 4500 * 0.25 + 26000 * 0.3 + 20000* 0.35);
} else{
tax += (taxTotal -80000) * 0.45 + 25000 * 0.35 + 20000 * 0.3 + 26000 * 0.25 + 4500 * 0.2 + 1500 * 0.1 + 3000 * 0.03;
taxable = (3500 * 0.03 + 1500 * 0.1 + 3000 * 0.2 + 4500 * 0.25 + 26000 * 0.3 + 20000* 0.35 + 25000 * 0.45);
}
}
//月应付税费
tax = (float)Math.round(tax/12 * 100)/100;
//月实发
Float salaryRealpay;
salaryRealpay = total - insurePension - insureSocial -tax;
//其它扣款
float other = bean.getOther();
if (other == 0){
bean.setOther(0f);
} else {
bean.setOther(other);
}
//工资详情
detailJson.clear();//清空
//月应发工资
detailJson.put("salaryTotal",total);
//健康管理师补贴
bean.setInsurePension(insurePension);
detailJson.put("insurePension",insurePension);
//社保公积金
detailJson.put("insureSocial",insureSocial);
//个税
bean.setTax(tax);
bean.setTaxable(taxable);
detailJson.put("tax",tax);
//月实发
bean.setSalaryRealpay(salaryRealpay);
detailJson.put("salaryRealpay",salaryRealpay);
//其它扣款
bean.setOther(other);
detailJson.put("other",other);
//实发工资
float salaryPay = salaryRealpay - other;
detailJson.put("salaryPay",salaryPay);
//计算结果记录日志
LogUtil.info(bean.getName() + "," + bean.getDeptName() + "," + total + ",补贴:" + insurePension +",社保:"
+ insureSocial + ",个税:" + tax + ",月实发:" + salaryRealpay + ",扣款:"+ other +
",实发:" + salaryPay);
Gson gson = new Gson();
String detail = gson.toJson(detailJson);
//更新实发工资
userMapper.updateRealpay(bean.getUid(), salaryPay);
//插入详情
CalculatorLog callog = new CalculatorLog();
callog.setUid(bean.getUid());
callog.setUsername(bean.getName());
callog.setTotal(total);
callog.setInsurepension(insurePension);
callog.setInsuresocial(insureSocial);
callog.setTax(tax);
callog.setOther(other);
callog.setRealpay(salaryRealpay);
callog.setSalaryPay(salaryPay);
callog.setTime(dateTime);
callog.setDetail(detail);
callogMapper.insertLog(callog);
return 1;
}
}
总结:以上是编辑:【感悟真情】整理及AI智能原创关于《上海健康管理师补贴
》优质内容解答希望能帮助到您。