修正了个人所得税计算,返回值修改为float

This commit is contained in:
wucongxing 2023-11-01 09:54:26 +08:00
parent a653149474
commit e69315bc00

View File

@ -535,10 +535,10 @@ class DoctorAccountService extends BaseService
/** /**
* 计算个人所得税 * 计算个人所得税
* @param string|int $income * @param string|float $income
* @return float|int * @return float
*/ */
protected function computeIndividualIncomeTax(string|int $income): float|int protected function computeIndividualIncomeTax(string|float $income): float
{ {
if ($income <= 800) { if ($income <= 800) {
return 0; return 0;