update
This commit is contained in:
parent
73f7c17286
commit
7d13f4b10b
@ -23,6 +23,7 @@ use app\common\model\project\Project;
|
||||
use app\common\model\project\ProjectAttendanceDetail;
|
||||
use app\common\model\project\ProjectPersonnel;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\project\ProjectSalaryDetail;
|
||||
|
||||
|
||||
/**
|
||||
@ -81,7 +82,7 @@ class ProjectPersonnelLists extends BaseAdminDataLists implements ListsSearchInt
|
||||
}
|
||||
$item['work_income'] = $work_income;
|
||||
$item['total_income'] = $item['daily_income'] + $item['work_income'];
|
||||
$item['pay_out'] = 0;
|
||||
$item['pay_out'] = ProjectSalaryDetail::where('person_id',$item['id'])->sum('apply_amount');
|
||||
$item['balance'] = $item['total_income'] - $item['pay_out'];
|
||||
return $item;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user