2
This commit is contained in:
parent
f23d79f959
commit
4011cbed8d
@ -399,7 +399,11 @@ class DoctorAccountService extends BaseService
|
|||||||
// 实际提现金额
|
// 实际提现金额
|
||||||
$withdrawal_amount = $amount_total - $income_tax;
|
$withdrawal_amount = $amount_total - $income_tax;
|
||||||
|
|
||||||
if ($withdrawal_amount_total != floor($withdrawal_amount * 100) / 100){
|
if ($withdrawal_amount > 0){
|
||||||
|
$withdrawal_amount = floor($withdrawal_amount * 100) / 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($withdrawal_amount_total != $withdrawal_amount){
|
||||||
return fail(HttpEnumCode::SERVER_ERROR,"金额不符合");
|
return fail(HttpEnumCode::SERVER_ERROR,"金额不符合");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -430,9 +434,7 @@ class DoctorAccountService extends BaseService
|
|||||||
if ($amount_total > 0){
|
if ($amount_total > 0){
|
||||||
$data['applied_withdrawal_amount'] = floor($amount_total * 100) / 100; // 提现金额
|
$data['applied_withdrawal_amount'] = floor($amount_total * 100) / 100; // 提现金额
|
||||||
}
|
}
|
||||||
if ($withdrawal_amount > 0){
|
$data['actual_withdrawal_amount'] = $withdrawal_amount; // 实际提现金额
|
||||||
$data['actual_withdrawal_amount'] = floor($withdrawal_amount * 100) / 100; // 实际提现金额
|
|
||||||
}
|
|
||||||
if ($income_tax > 0){
|
if ($income_tax > 0){
|
||||||
$data['income_tax'] = floor($income_tax * 100) / 100; // 提现所得税金额
|
$data['income_tax'] = floor($income_tax * 100) / 100; // 提现所得税金额
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user