Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
bb64f702
...
bb64f7020511d5bc30c5e25e3f614fa4b3b95c3f
authored
2021-07-01 09:48:04 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
aa5d56af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
app/Services/MusicianBalanceService.php
app/Services/MusicianBalanceService.php
View file @
bb64f70
...
...
@@ -71,19 +71,19 @@ class MusicianBalanceService extends Service
foreach
(
$payer
as
$item
)
{
$tax
=
(
$this
->
identifier
->
type
==
1
)
?
(
string
)
$this
->
reckonPersonTax
(
$item
[
'balance'
]
)
:
(
string
)
0
;
$tax
=
(
$this
->
identifier
->
type
==
1
)
?
(
string
)
$this
->
reckonPersonTax
(
$item
->
balance
)
:
(
string
)
0
;
//税后余额
$amount
=
(
string
)
bcsub
(
$item
[
'balance'
]
,
$tax
,
Service
::
DECIMAL
);
$amount
=
(
string
)
bcsub
(
$item
->
balance
,
$tax
,
Service
::
DECIMAL
);
if
(
$amount
>
0
)
{
//明细
$account
[
'detail'
][]
=
[
'payer'
=>
$item
->
subject
->
name
,
//付款方
'balance'
=>
$item
[
'balance'
]
,
//税前提现金额
'balance'
=>
$item
->
balance
,
//税前提现金额
'no'
=>
$item
->
subject
->
no
,
//付款方唯一标识
'tax'
=>
$tax
,
//所得税
'amount'
=>
$amount
,
//税后提现金额
'stakeholder_id'
=>
$item
[
'stakeholder_id'
]
,
'stakeholder_id'
=>
$item
->
stakeholder_id
,
];
}
...
...
Please
register
or
sign in
to post a comment