Commit bb64f702 bb64f7020511d5bc30c5e25e3f614fa4b3b95c3f by lemon

*

1 parent aa5d56af
......@@ -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,
];
}
......