|
@ -83,7 +83,7 @@ function manage_class($user_id, &$ret = []) |
|
|
* @return array |
|
|
* @return array |
|
|
* |
|
|
* |
|
|
*/ |
|
|
*/ |
|
|
function pricereview_class($rate, $user_id, &$ret = []) |
|
|
function pricereview_class($rate, $user_id, &$ret = [], $special_fee) |
|
|
{ |
|
|
{ |
|
|
global $link; |
|
|
global $link; |
|
|
|
|
|
|
|
@ -93,18 +93,19 @@ function pricereview_class($rate, $user_id, &$ret = []) |
|
|
if ($row["manager"] == "M0001") return; // 董事長略過 |
|
|
if ($row["manager"] == "M0001") return; // 董事長略過 |
|
|
if ($row["manager"] != "M0060" && $row["manager"] != "M0006" && $row["manager"] != "M0008") { |
|
|
if ($row["manager"] != "M0060" && $row["manager"] != "M0006" && $row["manager"] != "M0008") { |
|
|
$ret[1] = $row["manager"] . ",,"; |
|
|
$ret[1] = $row["manager"] . ",,"; |
|
|
pricereview_class($rate, $row["manager"], $ret); |
|
|
pricereview_class($rate, $row["manager"], $ret, $special_fee); |
|
|
} else { |
|
|
} else { |
|
|
$ret[2] = "M0024,,<##>M0107,,"; // 業務部專員:M0024許伃廷、M0107許紓晴(第2關有多位審核人) |
|
|
$ret[2] = "M0024,,<##>M0107,,"; // 業務部專員:M0024許伃廷、M0107許紓晴(第2關有多位審核人) |
|
|
$ret[3] = "M0060,,"; // 業務協理 |
|
|
$ret[3] = "M0060,,"; // 業務協理 |
|
|
if ($rate < 75) $ret[4] = "M0006,,"; // 總經理 |
|
|
if ($rate < 80 || $special_fee > 0){ |
|
|
|
|
|
$ret[4] = "M0006,,"; // 總經理 |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
mysqli_free_result($res); |
|
|
mysqli_free_result($res); |
|
|
|
|
|
|
|
|
return $ret; |
|
|
return $ret; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 汰改(契約)價審簽核順位 |
|
|
* 汰改(契約)價審簽核順位 |
|
|
* @param string $rate:破價比 |
|
|
* @param string $rate:破價比 |
|
|