Skip to content

Commit

Permalink
Update Itindata_model.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed Mar 1, 2024
1 parent cc877bf commit 44c28bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/models/Itindata_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ public function get_clientsplain($where=null) {

public function get_clients($where = null) {

$q = "Select c.*, v.*, i.* from clients_tbl AS c
$q = "Select c.*, v.*, is.* from clients_tbl AS c
LEFT JOIN vehicles_tbl AS v ON c.id_client = v.client_vhcl
LEFT JOIN inspections_tbl AS i ON v.id_vhcl = i.vehicle_inspection";
LEFT JOIN inspections_tbl AS is ON v.id_vhcl = is.vehicle_inspection";

if (isset($where))
{
Expand Down Expand Up @@ -159,8 +159,8 @@ public function get_unisnpvehicles(){

public function get_vehiclesfull($where=null)
{
$q = "Select v.*, i.*, c.* from vehicles_tbl AS v
LEFT JOIN inspections_tbl AS i ON v.id_vhcl = i.vehicle_inspection
$q = "Select v.*, is.*, c.* from vehicles_tbl AS v
LEFT JOIN inspections_tbl AS is ON v.id_vhcl = is.vehicle_inspection
LEFT JOIN clients_tbl AS c ON v.client_vhcl = c.id_client"
;

Expand Down

0 comments on commit 44c28bc

Please sign in to comment.