Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anthony.Suerte
iwl-live
Commits
2944cf4b
Commit
2944cf4b
authored
Nov 29, 2023
by
iWallet Dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AUI: Internal Transfer Fee Cancellation for Admin Accounts
parent
0018d295
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
model.php
system/logic/transfer/model.php
+17
-1
No files found.
system/logic/transfer/model.php
View file @
2944cf4b
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment