Skip to content

Commit

Permalink
ZenHub #1386 - Fix join issue in PDF export for Employee Record for m…
Browse files Browse the repository at this point in the history
…issing 4-level depts

ZenHub #1386 - Fix join issue in PDF export for Employee Record for missing 4-level depts
  • Loading branch information
telusdcinco committed Jan 2, 2025
1 parent 5760cbe commit eb6f012
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2662,7 +2662,7 @@ public function fileReportsExport(Request $request)
->join('employee_demo', function($join) {
$join->on('employee_demo.employee_id', '=', 'users.employee_id');
})
->join('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftjoin('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftJoin('users as supervisor', 'supervisor.id', '=', 'conversations.supervisor_signoff_id')
->leftJoin('users as employee', 'employee.id', '=', 'conversations.signoff_user_id')
->where('conversation_participants.role','=','emp')
Expand Down Expand Up @@ -2754,7 +2754,7 @@ public function fileReportsExport(Request $request)
->join('employee_demo', function($join) {
$join->on('employee_demo.employee_id', '=', 'users.employee_id');
})
->join('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftjoin('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftJoin('users as supervisor', 'supervisor.id', '=', 'conversations.supervisor_signoff_id')
->leftJoin('users as employee', 'employee.id', '=', 'conversations.signoff_user_id')
->where('conversation_participants.role','=','emp')
Expand Down Expand Up @@ -2872,7 +2872,7 @@ public function fileReportsExport(Request $request)
->join('employee_demo', function($join) {
$join->on('employee_demo.employee_id', '=', 'users.employee_id');
})
->join('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftjoin('employee_demo_tree', 'employee_demo_tree.id', 'employee_demo.orgid')
->leftJoin('users as supervisor', 'supervisor.id', '=', 'conversations.supervisor_signoff_id')
->leftJoin('users as employee', 'employee.id', '=', 'conversations.signoff_user_id')
->where('conversation_participants.role','=','emp')
Expand Down

0 comments on commit eb6f012

Please sign in to comment.