非正常工资薪金的个税规则

This commit is contained in:
钱涛 2024-07-01 15:09:40 +08:00
parent 77708b96ab
commit bdcdef34c2
2 changed files with 11 additions and 3 deletions

View File

@ -495,12 +495,12 @@ public class GetASynIndividualIncomeTaxFeedbackResponse extends BaseResponse {
/**
* 税率 必填
*/
@TaxField(name = "本月(次)工资薪金税税率", taxIndex = "sl")
@TaxField(name = "税率", taxIndex = "sl")
private BigDecimal sl;
/**
* 速算扣除数 必填
*/
@TaxField(name = "本月(次)工资薪金税速算扣除数", taxIndex = "sskcs")
@TaxField(name = "速算扣除数", taxIndex = "sskcs")
private BigDecimal sskcs;
/**

View File

@ -92,7 +92,15 @@ public class SalarySobTaxRuleServiceImpl extends Service implements SalarySobTax
for (Integer incomeCategoryId : incomeCategoryIds) {
IncomeCategoryEnum incomeCategoryEnum = IncomeCategoryEnum.parseByValue(incomeCategoryId);
List<SalarySobTaxRuleDTO.TaxRuleDTO> taxRules = incomeCategoryEnum.getReportType().getTaxRules();
List<SalarySobTaxRuleDTO.TaxRuleDTO> taxRules = new ArrayList<>();
if (incomeCategoryEnum == IncomeCategoryEnum.WAGES_AND_SALARIES || incomeCategoryEnum == IncomeCategoryEnum.NON_RESIDENT_INCOME_WAGES_AND_SALARIES) {
//只有正常工资薪金才显示算税明细规则
taxRules = incomeCategoryEnum.getReportType().getTaxRules();
} else {
taxRules.add(SalarySobTaxRuleDTO.TaxRuleDTO.builder().name("税率").taxIndex("sl").build());
taxRules.add(SalarySobTaxRuleDTO.TaxRuleDTO.builder().name("速算扣除数").taxIndex("sskcs").build());
taxRules.add(SalarySobTaxRuleDTO.TaxRuleDTO.builder().name("本月(次)应补税额").taxIndex("ybtse").build());
}
for (SalarySobTaxRuleDTO.TaxRuleDTO taxRule : taxRules) {
Long salaryItemId = salarySobTaxReportRuleMap.get(incomeCategoryId + "-" + taxRule.getTaxIndex());
SalaryItemPO salaryItem = idKeySalaryItemMap.get(salaryItemId);