diff --git a/wms/wipwhole-index-function.php b/wms/wipwhole-index-function.php
index 2c895426..368dc0d6 100644
--- a/wms/wipwhole-index-function.php
+++ b/wms/wipwhole-index-function.php
@@ -127,7 +127,7 @@ function getDataSql($department_id, $role_id, $user_id)
];
// 補丁 黃孟澤 & 葉博澄 權限 = 李烘銘
- if(in_array($user_id,['M0166','M0091'])){
+ if (in_array($user_id, ['M0166', 'M0091'])) {
$user_id = 'M0086';
}
@@ -295,7 +295,7 @@ function getDataSqlByFlowCode($department_id, $role_id, $user_id, $flow_code)
{
// 補丁 黃孟澤 & 葉博澄 權限 = 李烘銘
- if(in_array($user_id,['M0166','M0091'])){
+ if (in_array($user_id, ['M0166', 'M0091'])) {
$user_id = 'M0086';
}
@@ -1076,11 +1076,11 @@ function getSaveEstimateInstallData($user_department_id, $role_id)
return true;
if ($user_department_id == '542' && in_array($role_id, ['1', '5', '6']))
return true;
- if ($user_department_id == '544' && $role_id == '3')
+ if ($user_department_id == '544' && in_array($role_id, ['3', '6']))
return true;
if ($user_department_id == '543' && $role_id == '2')
return true;
- if ($user_department_id == '545' && $role_id == '6')
+ if ($user_department_id == '545' && in_array($role_id, ['3', '6']))
return true;
return false;
}
@@ -1095,9 +1095,9 @@ function saveInstallData($user_department_id, $role_id)
return true;
if ($user_department_id == '543' && $role_id == '2')
return true;
- if ($user_department_id == '544' && $role_id == '3')
+ if ($user_department_id == '544' && in_array($role_id, ['3', '6']))
return true;
- if ($user_department_id == '545' && $role_id == '6')
+ if ($user_department_id == '545' && in_array($role_id, ['3', '6']))
return true;
if ($user_department_id == '220')
return true;
diff --git a/wms/wipwhole-rec-invoice-edit.php b/wms/wipwhole-rec-invoice-edit.php
index 5384f087..c39a8a16 100644
--- a/wms/wipwhole-rec-invoice-edit.php
+++ b/wms/wipwhole-rec-invoice-edit.php
@@ -52,7 +52,7 @@ $pinzheng = getPinzhengStatus($link, $user_department_id, $role_id);
$tab = getTabNo($user_department_id);
// 工務助理
-if (in_array($user_id, ['M0164', 'M0165', 'M0127', 'M0193'])) {
+if (in_array($user_id, ['M0164', 'M0165', 'M0127', 'M0193', 'M0170'])) {
$warehouse2 = "";
$tab = 5;
}
@@ -279,7 +279,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
營業/契約確認規格 |
- |
確認時間 |
-
+
|
確認人 |
@@ -339,7 +339,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
?>
|
- >
+ >
@@ -360,7 +360,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
?>
|
確認時間 |
- |
+ |
確認人 |
@@ -373,7 +373,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
客戶顏色 |
- >
+ >
@@ -388,7 +388,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
?>
|
確認時間 |
- |
+ |
確認人 |
@@ -400,7 +400,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
客戶樣式 |
- >
+ >
@@ -415,7 +415,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
?>
|
確認時間 |
- |
+ |
確認人 |
@@ -427,7 +427,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
工勘聯絡表 |
- >
+ >
@@ -442,7 +442,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
?>
|
確認時間 |
- |
+ |
確認人 |
@@ -454,14 +454,14 @@ include "wipwhole-rec-invoice-edit-submit.php";
備註 |
-
+
|
移交日 |
- >
+ >
@@ -501,7 +501,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
|
設計規格 |
- >
+ >
diff --git a/wms/wipwhole-renovate-index-function.php b/wms/wipwhole-renovate-index-function.php
index d21ec4cb..f71dddb1 100644
--- a/wms/wipwhole-renovate-index-function.php
+++ b/wms/wipwhole-renovate-index-function.php
@@ -1057,11 +1057,11 @@ function getSaveEstimateInstallData($user_department_id, $role_id)
return true;
if ($user_department_id == '542' && in_array($role_id, ['1', '5', '6']))
return true;
- if ($user_department_id == '544' && $role_id == '3')
+ if ($user_department_id == '544' && in_array($role_id, ['3', '6']))
return true;
if ($user_department_id == '543' && $role_id == '2')
return true;
- if ($user_department_id == '545' && $role_id == '6')
+ if ($user_department_id == '545' && in_array($role_id, ['3', '6']))
return true;
return false;
}
@@ -1076,9 +1076,9 @@ function getSaveInstallDataButtonStatus($user_department_id, $role_id)
return true;
if ($user_department_id == '543' && $role_id == '2')
return true;
- if ($user_department_id == '544' && $role_id == '3')
+ if ($user_department_id == '544' && in_array($role_id, ['3', '6']))
return true;
- if ($user_department_id == '545' && $role_id == '6')
+ if ($user_department_id == '545' && in_array($role_id, ['3', '6']))
return true;
if ($user_department_id == '220')
return true;
diff --git a/wms/wipwhole-renovate-rec-invoice-edit.php b/wms/wipwhole-renovate-rec-invoice-edit.php
index fd37cf61..26c14ff5 100644
--- a/wms/wipwhole-renovate-rec-invoice-edit.php
+++ b/wms/wipwhole-renovate-rec-invoice-edit.php
@@ -50,7 +50,7 @@ $pinzheng = getPinzhengStatus($link, $user_department_id, $role_id);
$tab = getTabNo($user_department_id);
// 工務助理
-if (in_array($user_id, ['M0164', 'M0165', 'M0127', 'M0193'])) {
+if (in_array($user_id, ['M0164', 'M0165', 'M0127', 'M0193', 'M0170'])) {
$warehouse2 = "";
$tab = 5;
}
diff --git a/wms/wipwholeinstall-index-function.php b/wms/wipwholeinstall-index-function.php
index 151d439b..2596cf3d 100644
--- a/wms/wipwholeinstall-index-function.php
+++ b/wms/wipwholeinstall-index-function.php
@@ -120,6 +120,9 @@ function getEditFlag($department_id, $role_id, $user_id)
// 南區營銷部 工務助理
if ($department_id == '314' && $role_id == '4')
return 4;
+ // 宜花東營銷部 工務助理
+ if ($department_id == '315' && $role_id == '2')
+ return 4;
// 安裝開發支援部 工務助理
if ($department_id == '521' && $role_id == '11')
return 4;
@@ -219,6 +222,19 @@ function getDataSql($department_id, $role_id, $user_id)
";
return $sql;
}
+ // 宜花東營銷部 工務助理
+ if ($department_id == '314' && $role_id == '4') {
+ $sql = "
+ SELECT * FROM wipwholestatus
+ WHERE 1=1
+ AND status = '1'
+ AND contract_type = '$contract_type'
+ " . getWipwholeSearchSql() . "
+ AND SUBSTR(address,1,2) in ('台東','宜蘭','花蓮')
+ ORDER BY real_contract_arrival_date DESC
+ ";
+ return $sql;
+ }
// 安裝開發支援部 工務助理
if ($department_id == '521' && $role_id == '11') {
$sql = "
diff --git a/wms/wipwholeinstall-renovate-index-function.php b/wms/wipwholeinstall-renovate-index-function.php
index 2f140b60..58f48d6d 100644
--- a/wms/wipwholeinstall-renovate-index-function.php
+++ b/wms/wipwholeinstall-renovate-index-function.php
@@ -123,6 +123,9 @@ function getEditFlag($department_id, $role_id, $user_id)
// 南區營銷部 工務助理
if ($department_id == '314' && $role_id == '4')
return 4;
+ // 宜花東營銷部 工務助理
+ if ($department_id == '315' && $role_id == '2')
+ return 4;
// 安裝開發支援部 工務助理
if ($department_id == '521' && $role_id == '11')
return 4;
@@ -219,6 +222,19 @@ function getDataSql($department_id, $role_id, $user_id)
";
return $sql;
}
+ // 宜花東營銷部 工務助理
+ if ($department_id == '315' && $role_id == '2') {
+ $sql = "
+ SELECT * FROM wipwholestatus
+ WHERE 1=1
+ AND status = '1'
+ AND contract_type = '$contract_type'
+ " . getWipwholeSearchSql() . "
+ AND SUBSTR(address,1,2) in ('台南','臺南','嘉義','屏東','高雄')
+ ORDER BY real_contract_arrival_date DESC
+ ";
+ return $sql;
+ }
// 安裝開發支援部 工務助理
if ($department_id == '521' && $role_id == '11') {
$sql = "
@@ -881,6 +897,9 @@ function getWarehouseStatus($link, $user_department_id, $role_id)
// 南區營銷部 工務助理
if ($user_department_id == '314' && $role_id == '4')
return "";
+ // 宜花東營銷部 工務助理
+ if ($user_department_id == '315' && $role_id == '2')
+ return "";
// 安裝開發支援部 工務助理
if ($user_department_id == '521' && $role_id == '11')
return "";
| | | | |