|
|
|
@ -486,7 +486,8 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
'maintain_commission_ratio'=>'维护业绩提成比例(%)',
|
|
|
|
|
'appraisal_bonuses_ratio'=>'开发考核奖金比例(%)',
|
|
|
|
|
'maintain_appraisal_bonuses_ratio'=>'维护奖金考核比例(%)',
|
|
|
|
|
'company_profit'=>'税后毛利',
|
|
|
|
|
'achievement_profit'=>'开发税后毛利',
|
|
|
|
|
'performance_profit'=>'维护税后毛利',
|
|
|
|
|
'performance_commission' => '业绩提成',
|
|
|
|
|
'achievement_bonus' => '绩效考核奖金',
|
|
|
|
|
'commission' => '当月合计',
|
|
|
|
@ -500,29 +501,38 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$data[$key]['performance_commission'] = "=ROUND(";
|
|
|
|
|
$data[$key]['achievement_bonus'] = "=ROUND(";
|
|
|
|
|
if ($value['performance_revenue'] != "0.00") {
|
|
|
|
|
if ($value['performance_profit'] != "0.00") {
|
|
|
|
|
$data[$key]['performance_commission'] .= "J{$line}*(F{$line}/100)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "J{$line}*(H{$line}/100)";
|
|
|
|
|
}
|
|
|
|
|
if ($value['appraisal_bonuses'] != "0.00") {
|
|
|
|
|
if ($value['achievement_profit'] != "0.00") {
|
|
|
|
|
if ($data[$key]['performance_commission'] == "=ROUND(") {
|
|
|
|
|
$data[$key]['performance_commission'] .= "J{$line}*(G{$line}/100),2)";
|
|
|
|
|
$data[$key]['performance_commission'] .= "K{$line}*(G{$line}/100),2)";
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['performance_commission'] .= "+J{$line}*(G{$line}/100),2)";
|
|
|
|
|
$data[$key]['performance_commission'] .= "+K{$line}*(G{$line}/100),2)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($data[$key]['achievement_bonus'] == "=ROUND(") {
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "J{$line}*(I{$line}/100),2)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "K{$line}*(I{$line}/100),2)";
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "+J{$line}*(I{$line}/100),2)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "+K{$line}*(I{$line}/100),2)";
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['performance_commission'] .= ",2)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= ",2)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($data[$key]['performance_commission'] == '=ROUND(,2)') {
|
|
|
|
|
$data[$key]['performance_commission'] = "0.00";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($data[$key]['achievement_bonus'] == '=ROUND(,2)') {
|
|
|
|
|
$data[$key]['achievement_bonus'] = "0.00";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $data[$key]['performance_commission'] = "=ROUND(J{$line}*(F{$line}/100)+J{$line}*(G{$line}/100),2)";
|
|
|
|
|
// $data[$key]['achievement_bonus'] = "=ROUND(J{$line}*(H{$line}/100)+J{$line}*(I{$line}/100),2)";
|
|
|
|
|
$data[$key]['commission'] = "=ROUND(K{$line}+L{$line},2)";
|
|
|
|
|
$data[$key]['commission'] = "=ROUND(L{$line}+M{$line},2)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data = array_merge($data,[$sum]);
|
|
|
|
|