...
|
...
|
@@ -299,8 +299,8 @@ class BeforeToAfter extends Api |
|
|
// 累计工资(不含年终奖)
|
|
|
$salary_total = $salary * $month;
|
|
|
// 社保基数
|
|
|
$social_top = 28017; //社保封顶金额
|
|
|
$social_bottom = 4927; //社保保底金额
|
|
|
$social_top = config('site.social_top'); //社保封顶金额
|
|
|
$social_bottom = config('site.social_bottom'); //社保保底金额
|
|
|
if(!empty($social_base)){
|
|
|
$social_base > $social_top && $this->error('社保汇缴基数不能大于'.$social_top);
|
|
|
$social_base < $social_bottom && $this->error('社保汇缴基数不能小于'.$social_bottom);
|
...
|
...
|
@@ -308,8 +308,8 @@ class BeforeToAfter extends Api |
|
|
$social_base = $salary > $social_top ? $social_top : ($salary < $social_bottom ? $social_bottom : $salary);
|
|
|
}
|
|
|
// 公积金基数
|
|
|
$housing_fund_top = 28017; //公积金封顶金额
|
|
|
$housing_fund_bottom = 2480; //公积金保底金额
|
|
|
$housing_fund_top = config('site.housing_fund_top'); //公积金封顶金额
|
|
|
$housing_fund_bottom = config('site.housing_fund_bottom'); //公积金保底金额
|
|
|
if(!empty($housing_fund_base)){
|
|
|
$housing_fund_base > $housing_fund_top && $this->error('公积金汇缴基数不能大于'.$housing_fund_top);
|
|
|
$housing_fund_base < $housing_fund_bottom && $this->error('公积金汇缴基数不能小于'.$housing_fund_bottom);
|
...
|
...
|
|