Commit 2944cf4b authored by iWallet Dev's avatar iWallet Dev

AUI: Internal Transfer Fee Cancellation for Admin Accounts

parent 0018d295
......@@ -51,6 +51,7 @@ class TransferModelClass extends ModelClassEx {
private $sTo = NO_STRING; // 終了日
private $sProcessType = array(); // 処理タイプ
// ------------------ 検索系 ------------------//
private $administrativeExceptions = array();
/**
*
......@@ -130,6 +131,12 @@ class TransferModelClass extends ModelClassEx {
$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日に設定
if($this -> sFrom == NO_STRING) {
......@@ -442,6 +449,10 @@ class TransferModelClass extends ModelClassEx {
$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 {
$this -> fromFee = NO_COUNT;
}
......@@ -465,6 +476,11 @@ class TransferModelClass extends ModelClassEx {
if($this -> toFee < $low) {
$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 {
$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