Commit 7813a375 authored by iWallet Dev's avatar iWallet Dev

AUI: Internal Transfer Fee Cancellation for Admin Accounts

parent 3ebfa36d
...@@ -51,6 +51,7 @@ class TransferModelClass extends ModelClassEx { ...@@ -51,6 +51,7 @@ class TransferModelClass extends ModelClassEx {
private $sTo = NO_STRING; // 終了日 private $sTo = NO_STRING; // 終了日
private $sProcessType = array(); // 処理タイプ private $sProcessType = array(); // 処理タイプ
// ------------------ 検索系 ------------------// // ------------------ 検索系 ------------------//
private $administrativeExceptions = array();
/** /**
* *
...@@ -130,6 +131,12 @@ class TransferModelClass extends ModelClassEx { ...@@ -130,6 +131,12 @@ class TransferModelClass extends ModelClassEx {
$this -> testAccountFlg = $this -> getDataPost(PARAM_TEST_ACCOUNT_FLG); // WLID $this -> testAccountFlg = $this -> getDataPost(PARAM_TEST_ACCOUNT_FLG); // WLID
// ------------------ 検索系 ------------------// // ------------------ 検索系 ------------------//
$this -> administrativeExceptions = $this -> getSettingConfiguration("administrative_exception");
$this -> administrativeExceptions = array_map(function($element){
return $element -> user_account;
}, $this -> administrativeExceptions);
// 開始日が指定されていない場合は、当月の01日に設定 // 開始日が指定されていない場合は、当月の01日に設定
if($this -> sFrom == NO_STRING) { if($this -> sFrom == NO_STRING) {
...@@ -442,6 +449,10 @@ class TransferModelClass extends ModelClassEx { ...@@ -442,6 +449,10 @@ class TransferModelClass extends ModelClassEx {
$this -> fromFee = VAL_INT_1 / $digit; $this -> fromFee = VAL_INT_1 / $digit;
} }
// if it's an admin account, cancel fee
if(in_array($this -> from, $this -> administrativeExceptions)){
$this -> fromFee = NO_COUNT;
}
} else { } else {
$this -> fromFee = NO_COUNT; $this -> fromFee = NO_COUNT;
} }
...@@ -465,6 +476,11 @@ class TransferModelClass extends ModelClassEx { ...@@ -465,6 +476,11 @@ class TransferModelClass extends ModelClassEx {
if($this -> toFee < $low) { if($this -> toFee < $low) {
$this -> toFee = VAL_INT_1 / $digit; $this -> toFee = VAL_INT_1 / $digit;
} }
// if it's an admin account, cancel fee
if(in_array($this -> to, $this -> administrativeExceptions)){
$this -> toFee = NO_COUNT;
}
} else { } else {
$this -> toFee = NO_COUNT; $this -> toFee = NO_COUNT;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment