作者 何书鹏
1 个管道 的构建 通过 耗费 1 秒

bug修改

... ... @@ -264,8 +264,8 @@ class AfterToBefore extends Api
if(empty($add_money)){
$add_money = 0;
}
$social_top = 28017; //社保封顶金额
$social_bottom = 4927; //社保保底金额
$social_top = config('site.social_top'); //社保封顶金额
$social_bottom = config('site.social_bottom'); //社保保底金额
// 公积金缴存比例5%-7%
$social_rate_user = Db::name('social_insurance_rate')->where('id',1)->find();
$social_rate_company = Db::name('social_insurance_rate')->where('id',2)->find();
... ...
... ... @@ -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);
... ...
... ... @@ -42,4 +42,8 @@ return array (
2 => '6',
3 => '7',
),
'social_top' => '28017',
'social_bottom' => '4927',
'housing_fund_top' => '28017',
'housing_fund_bottom' => '2480',
);
\ No newline at end of file
... ...