Commit 31031547 authored by huyuchen's avatar huyuchen

优化修改

parent c40ef474
......@@ -1777,14 +1777,14 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
} else {
// 2个人承担全部
//个人承担全部税费,实发要变为应发,推算出实发、个税
nowTaxY = getNowTax(actualSalarySum);
nowTaxY = getNowTaxNew(actualSalarySum);
if (sumOtherTax.compareTo(BigDecimal.ZERO) != 0) {
//历史应发税费
nowTaxY = BigDecimalUtils.safeSubtract(false,nowTaxY, sumOtherTax).setScale(SalaryConstants.PLACES, RoundingMode.HALF_UP);
}
//公司应发和个人实收
relaySalary = BigDecimalUtils.safeSubtract(false,actualSalarySumNow, nowTaxY).setScale(SalaryConstants.PLACES, RoundingMode.HALF_UP);
a.setActualSalary(relaySalary);
relaySalary = actualSalarySumNow;
a.setActualSalary(BigDecimalUtils.safeSubtract(false,actualSalarySumNow, nowTaxY).setScale(SalaryConstants.PLACES, RoundingMode.HALF_UP));
a.setSalaryTax(nowTaxY);
}
a.setRelaySalaryUnit(relaySalary);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment