|
|
|
@ -495,11 +495,31 @@ class MarketPercentageController extends ThinkController
|
|
|
|
|
$line = $key+2;
|
|
|
|
|
// $develop_commission_ratio = $value['develop_commission_ratio']/100;
|
|
|
|
|
$data[$key]['pay_time'] = '`'.$data[$key]['pay_time'];
|
|
|
|
|
if ($value['']) {
|
|
|
|
|
|
|
|
|
|
$data[$key]['performance_commission'] = "=ROUND(";
|
|
|
|
|
$data[$key]['achievement_bonus'] = "=ROUND(";
|
|
|
|
|
if ($value['performance_revenue'] != "0.00") {
|
|
|
|
|
$data[$key]['performance_commission'] .= "J{$line}*(F{$line}/100)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "J{$line}*(H{$line}/100)";
|
|
|
|
|
}
|
|
|
|
|
$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)";
|
|
|
|
|
if ($value['appraisal_bonuses'] != "0.00") {
|
|
|
|
|
if ($data[$key]['performance_commission'] == "=ROUND(") {
|
|
|
|
|
$data[$key]['performance_commission'] .= "J{$line}*(G{$line}/100),2)";
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['performance_commission'] .= "+J{$line}*(G{$line}/100),2)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($data[$key]['achievement_bonus'] == "=ROUND(") {
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "J{$line}*(I{$line}/100),2)";
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['achievement_bonus'] .= "+J{$line}*(I{$line}/100),2)";
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
$data[$key]['performance_commission'] .= ",2)";
|
|
|
|
|
$data[$key]['achievement_bonus'] .= ",2)";
|
|
|
|
|
}
|
|
|
|
|
// $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)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|