FIX_VEHICLE_NO
This commit is contained in:
parent
ae9ecff8d7
commit
86b34f77cf
@ -4030,6 +4030,7 @@ class EmployeeRestController extends AdminController
|
||||
$tickets = $this->ticketMaster
|
||||
->select("
|
||||
ticket_master.*,
|
||||
vehicle.vehicle_no,
|
||||
(
|
||||
SELECT th1.old_value
|
||||
FROM ticket_history th1
|
||||
@ -4044,9 +4045,10 @@ class EmployeeRestController extends AdminController
|
||||
)
|
||||
) AS old_status_id
|
||||
")
|
||||
->where('is_active', 1)
|
||||
->where('client_id', $policy['client_id'])
|
||||
->where('policy_transaction_id', $policy['policy_transaction_id'])
|
||||
->join("vehicle", "ticket_master.vehicle_id = vehicle.id", "left")
|
||||
->where('ticket_master.is_active', 1)
|
||||
->where('ticket_master.client_id', $policy['client_id'])
|
||||
->where('ticket_master.policy_transaction_id', $policy['policy_transaction_id'])
|
||||
->findAll();
|
||||
|
||||
if (!empty($tickets)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user