Commit 9f61f549 authored by hongguangwu's avatar hongguangwu

MVP1.5.4-SALARY实发倒推应发最后提交

parent 8cedfc67
...@@ -1166,14 +1166,12 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1166,14 +1166,12 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
//本次纳税额 //本次纳税额
BigDecimal res = SalaryConstants.B_ZERO; BigDecimal res = SalaryConstants.B_ZERO;
BigDecimal sumTax = SalaryConstants.B_ZERO; BigDecimal sumTax = SalaryConstants.B_ZERO;
BigDecimal realDeduSalary = SalaryConstants.B_ZERO;
// 实发倒推-属性: // 实发倒推-属性:
BigDecimal actualSalaryNow = SalaryConstants.B_ZERO; // 本次实发 BigDecimal actualSalaryNow = SalaryConstants.B_ZERO; // 本次实发
BigDecimal actualSalary = SalaryConstants.B_ZERO; // 实发 BigDecimal actualSalary = SalaryConstants.B_ZERO; // 实发
BigDecimal annualBonus = SalaryConstants.B_ZERO; // -单独年终奖 BigDecimal annualBonus = SalaryConstants.B_ZERO; // -单独年终奖
BigDecimal annualBonusTax = SalaryConstants.B_ZERO; // -单独年终奖税 BigDecimal annualBonusTax = SalaryConstants.B_ZERO; // -单独年终奖税
BigDecimal annualBonusTaxHistory = SalaryConstants.B_ZERO; // -单独年终奖税-历史
BigDecimal deduction = SalaryConstants.B_ZERO; // +个人代扣 BigDecimal deduction = SalaryConstants.B_ZERO; // +个人代扣
BigDecimal phoneSubsidy = SalaryConstants.B_ZERO; // -通讯补贴(不计税) BigDecimal phoneSubsidy = SalaryConstants.B_ZERO; // -通讯补贴(不计税)
BigDecimal otherDeduction = SalaryConstants.B_ZERO; // -其他扣除项,包含【累计个人社保(含代扣,含本期)+累计个人公积金(含代扣) BigDecimal otherDeduction = SalaryConstants.B_ZERO; // -其他扣除项,包含【累计个人社保(含代扣,含本期)+累计个人公积金(含代扣)
...@@ -1202,13 +1200,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1202,13 +1200,11 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
phoneSubsidy = phoneSubsidy.add(item.getSalaryMoney()); phoneSubsidy = phoneSubsidy.add(item.getSalaryMoney());
} }
if (SalaryConstants.ACTUAL_SALARY_SUM_JAVA.equals(item.getJavaFiedName())) { if (SalaryConstants.ACTUAL_SALARY_SUM_JAVA.equals(item.getJavaFiedName())) {
realDeduSalary = realDeduSalary.add(item.getSalaryMoney());
actualSalary = actualSalary.add(item.getSalaryMoney()); actualSalary = actualSalary.add(item.getSalaryMoney());
actualSalaryNow = actualSalaryNow.add(item.getSalaryMoney()); actualSalaryNow = actualSalaryNow.add(item.getSalaryMoney());
} }
if (CommonConstants.ONE_INT == item.getIsTax()) { if (CommonConstants.ONE_INT == item.getIsTax()) {
res = res.subtract(item.getSalaryMoney()); res = res.subtract(item.getSalaryMoney());
realDeduSalary = realDeduSalary.subtract(item.getSalaryMoney());
} }
otherDeduction = getOtherDeducation(otherDeduction, item); otherDeduction = getOtherDeducation(otherDeduction, item);
} }
...@@ -1220,7 +1216,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1220,7 +1216,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
} }
if (SalaryConstants.ANNUAL_BONUS_TAX_JAVA.equals(item.getJavaFiedName())) { if (SalaryConstants.ANNUAL_BONUS_TAX_JAVA.equals(item.getJavaFiedName())) {
annualBonusTax = annualBonusTax.add(item.getSalaryMoney()); annualBonusTax = annualBonusTax.add(item.getSalaryMoney());
annualBonusTaxHistory = annualBonusTaxHistory.add(item.getSalaryMoney());
} }
} }
if (SalaryConstants.SALARY_TAX_JAVA.equals(item.getJavaFiedName())) { if (SalaryConstants.SALARY_TAX_JAVA.equals(item.getJavaFiedName())) {
...@@ -1239,7 +1234,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1239,7 +1234,6 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
otherDeduction = otherDeduction.add(item.getSalaryMoney()); otherDeduction = otherDeduction.add(item.getSalaryMoney());
} }
if (SalaryConstants.ACTUAL_SALARY_SUM_JAVA.equals(item.getJavaFiedName())) { if (SalaryConstants.ACTUAL_SALARY_SUM_JAVA.equals(item.getJavaFiedName())) {
realDeduSalary = realDeduSalary.add(item.getSalaryMoney());
actualSalary = actualSalary.add(item.getSalaryMoney()); actualSalary = actualSalary.add(item.getSalaryMoney());
} }
if (CommonConstants.ONE_INT == item.getIsTax()) { if (CommonConstants.ONE_INT == item.getIsTax()) {
...@@ -1249,11 +1243,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1249,11 +1243,9 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
} }
if (specialDeductionSum != null) { if (specialDeductionSum != null) {
res = res.subtract(specialDeductionSum); res = res.subtract(specialDeductionSum);
realDeduSalary = realDeduSalary.subtract(specialDeductionSum);
} }
if (costReduction != null) { if (costReduction != null) {
res = res.subtract(costReduction); res = res.subtract(costReduction);
realDeduSalary = realDeduSalary.subtract(costReduction);
} }
if (!isActual) { if (!isActual) {
for (TSalaryTaxConfig sub : subs) { for (TSalaryTaxConfig sub : subs) {
...@@ -1319,7 +1311,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper, ...@@ -1319,7 +1311,7 @@ public class SalaryUploadServiceImpl extends ServiceImpl<TSalaryStandardMapper,
if (relaySalaryNow.compareTo(actualSalaryNow) <= SalaryConstants.EQUAL) { if (relaySalaryNow.compareTo(actualSalaryNow) <= SalaryConstants.EQUAL) {
relaySalaryNow = actualSalaryNow; relaySalaryNow = actualSalaryNow;
} }
res = taxAll.subtract(taxHistory).subtract(annualBonusTaxHistory); res = taxAll.subtract(taxHistory);
// 本次个人应发合计 // 本次个人应发合计
TSalaryAccountItem sai = new TSalaryAccountItem(); TSalaryAccountItem sai = new TSalaryAccountItem();
sai.setCnName(SalaryConstants.RELAY_SALARY); sai.setCnName(SalaryConstants.RELAY_SALARY);
......
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