正在显示
1 个修改的文件
包含
8 行增加
和
5 行删除
@@ -323,7 +323,7 @@ class AfterToBefore extends Api | @@ -323,7 +323,7 @@ class AfterToBefore extends Api | ||
323 | } | 323 | } |
324 | // 累计个人所得税 | 324 | // 累计个人所得税 |
325 | $person_fee_total = $suode == 0 ? 0 : $suode+$dec_fee_total-$salary_hand; | 325 | $person_fee_total = $suode == 0 ? 0 : $suode+$dec_fee_total-$salary_hand; |
326 | - if((empty($social_base) && empty($housing_fund_base)) || ($social_base == $salary_hand_average && $housing_fund_base == $salary_hand_average)){ | 326 | + if($social_base == $salary_hand_average && $housing_fund_base == $salary_hand_average){ |
327 | // 个人五险一金比例 | 327 | // 个人五险一金比例 |
328 | $wuxianyijin_rate = ($social_rate_user['endowment']+$social_rate_user['medical']+$social_rate_user['unemployment']+$social_rate_user['birth']+$housing_fund_rate)/100; | 328 | $wuxianyijin_rate = ($social_rate_user['endowment']+$social_rate_user['medical']+$social_rate_user['unemployment']+$social_rate_user['birth']+$housing_fund_rate)/100; |
329 | $fee_top = $social_top * $wuxianyijin_rate; //三金封顶费用 | 329 | $fee_top = $social_top * $wuxianyijin_rate; //三金封顶费用 |
@@ -392,10 +392,6 @@ class AfterToBefore extends Api | @@ -392,10 +392,6 @@ class AfterToBefore extends Api | ||
392 | 'money' => round($san_gong_money_total/$wuxianyijin_rate*($social_rate_company['industrial']/100)/$month,2) | 392 | 'money' => round($san_gong_money_total/$wuxianyijin_rate*($social_rate_company['industrial']/100)/$month,2) |
393 | ], | 393 | ], |
394 | ]; | 394 | ]; |
395 | - // 社保汇缴基数 | ||
396 | - $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average); | ||
397 | - // 公积金汇缴基数 | ||
398 | - $housing_fund_base = $salary_average > $housing_fund_top ? $housing_fund_top : ($salary_average < $housing_fund_bottom ? $housing_fund_bottom : $salary_average); | ||
399 | }else{ | 395 | }else{ |
400 | // 每月个人承担的三险比例(其中养老8%,医疗2%,失业0.5%,三种保险总和为10.5%,上海地区个人承担的三种保险比例一致。) | 396 | // 每月个人承担的三险比例(其中养老8%,医疗2%,失业0.5%,三种保险总和为10.5%,上海地区个人承担的三种保险比例一致。) |
401 | $social_rate = ($social_rate_user['endowment']+$social_rate_user['medical']+$social_rate_user['unemployment']+$social_rate_user['birth']+$social_rate_user['industrial'])/100; | 397 | $social_rate = ($social_rate_user['endowment']+$social_rate_user['medical']+$social_rate_user['unemployment']+$social_rate_user['birth']+$social_rate_user['industrial'])/100; |
@@ -582,6 +578,13 @@ class AfterToBefore extends Api | @@ -582,6 +578,13 @@ class AfterToBefore extends Api | ||
582 | ] | 578 | ] |
583 | ],$user_go['en']), | 579 | ],$user_go['en']), |
584 | ]; | 580 | ]; |
581 | + // 基数 | ||
582 | + if($social_base == $salary_hand_average && $housing_fund_base == $salary_hand_average){ | ||
583 | + // 社保汇缴基数 | ||
584 | + $social_base = $salary_average > $social_top ? $social_top : ($salary_average < $social_bottom ? $social_bottom : $salary_average); | ||
585 | + // 公积金汇缴基数 | ||
586 | + $housing_fund_base = $salary_average > $housing_fund_top ? $housing_fund_top : ($salary_average < $housing_fund_bottom ? $housing_fund_bottom : $salary_average); | ||
587 | + } | ||
585 | $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base')); | 588 | $this->success('请求成功',compact('param','salary_average','social_user','social_user_money','social_company','social_company_money','person_fee_average','company_cost','user_go','company_go','social_base','housing_fund_base')); |
586 | } | 589 | } |
587 | 590 |
-
请 注册 或 登录 后发表评论