福利的重新核算功能异常
This commit is contained in:
parent
b06eae55d8
commit
0045a0dd59
|
|
@ -987,11 +987,12 @@ public class SIAccountServiceImpl extends Service implements SIAccountService {
|
|||
|
||||
@Override
|
||||
public void socialSecurityBenefitsRecalculate(InsuranceAccountBatchPO param) {
|
||||
int num = getSiAccountBiz(user).checkIfBusinessaccounting(param);
|
||||
//表示已经被核算过不能重新核算
|
||||
if (num > 0) {
|
||||
throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(98831, "已被薪酬核算给核算过,无法重新核算!"));
|
||||
}
|
||||
//fixme 重新核算的校验逻辑 1、先取台账对应扣缴义务人下的所有账套 2、取账套下所有核算记录 3、判断核算记录有没有使用对应月份的福利台账
|
||||
// int num = getSiAccountBiz(user).checkIfBusinessaccounting(param);
|
||||
// //表示已经被核算过不能重新核算
|
||||
// if (num > 0) {
|
||||
// throw new SalaryRunTimeException(SalaryI18nUtil.getI18nLabel(98831, "已被薪酬核算给核算过,无法重新核算!"));
|
||||
// }
|
||||
param.setBillStatus(0);
|
||||
getSiAccountBiz(user).updateById(param);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ public class SalaryArchiveItemServiceImpl extends Service implements SalaryArchi
|
|||
throw new SalaryRunTimeException("薪资档案不存在!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// 获取当前已生效数据
|
||||
List<SalaryArchiveItemPO> effectiveSalaryItems = getEffectiveSalaryItems(salaryArchiveId, salaryItemIds);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue