Skip to content

Commit

Permalink
Deixado como padrão aparecer 5 compras na area do cliente
Browse files Browse the repository at this point in the history
  • Loading branch information
cabralwms committed Dec 15, 2023
1 parent 8c60e00 commit 3129e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/models/Conecte_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function getLastOs($cliente)
$this->db->from('os');
$this->db->join('usuarios', 'os.usuarios_id = usuarios.idUsuarios', 'left');
$this->db->where('clientes_id', $cliente);
$this->db->limit(10);
$this->db->limit(5);
$this->db->order_by('idOs', 'desc');

return $this->db->get()->result();
Expand All @@ -41,7 +41,7 @@ public function getLastCompras($cliente)
$this->db->join('usuarios', 'usuarios.idUsuarios = vendas.usuarios_id');
$this->db->order_by('idVendas', 'desc');
$this->db->where('clientes_id', $cliente);
$this->db->limit(10);
$this->db->limit(5);

return $this->db->get()->result();
}
Expand Down

0 comments on commit 3129e8b

Please sign in to comment.