*
Showing
1 changed file
with
4 additions
and
4 deletions
... | @@ -71,19 +71,19 @@ class MusicianBalanceService extends Service | ... | @@ -71,19 +71,19 @@ class MusicianBalanceService extends Service |
71 | 71 | ||
72 | foreach ($payer as $item) { | 72 | foreach ($payer as $item) { |
73 | 73 | ||
74 | $tax = ($this->identifier->type == 1) ? (string)$this->reckonPersonTax($item['balance']) : (string)0; | 74 | $tax = ($this->identifier->type == 1) ? (string)$this->reckonPersonTax($item->balance) : (string)0; |
75 | //税后余额 | 75 | //税后余额 |
76 | $amount = (string)bcsub($item['balance'], $tax, Service::DECIMAL); | 76 | $amount = (string)bcsub($item->balance, $tax, Service::DECIMAL); |
77 | 77 | ||
78 | if ($amount > 0) { | 78 | if ($amount > 0) { |
79 | //明细 | 79 | //明细 |
80 | $account['detail'][] = [ | 80 | $account['detail'][] = [ |
81 | 'payer' => $item->subject->name, //付款方 | 81 | 'payer' => $item->subject->name, //付款方 |
82 | 'balance' => $item['balance'], //税前提现金额 | 82 | 'balance' => $item->balance, //税前提现金额 |
83 | 'no' => $item->subject->no, //付款方唯一标识 | 83 | 'no' => $item->subject->no, //付款方唯一标识 |
84 | 'tax' => $tax, //所得税 | 84 | 'tax' => $tax, //所得税 |
85 | 'amount' => $amount, //税后提现金额 | 85 | 'amount' => $amount, //税后提现金额 |
86 | 'stakeholder_id' => $item['stakeholder_id'], | 86 | 'stakeholder_id' => $item->stakeholder_id, |
87 | ]; | 87 | ]; |
88 | } | 88 | } |
89 | 89 | ... | ... |
-
Please register or sign in to post a comment