This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function listaMatHistOS($conn, $rm){ | |
$HistMatOS = array(); | |
$where = []; | |
$where[] = "cliente.id = (select usuario.idCliente from usuario where usuario.login = '".usuarioLogado()."')"; | |
//$where[] = "EXISTS(SELECT usuario.id FROM usuario WHERE usuario.login = '".usuarioLogado()."' AND (cliente.id = usuario.idCliente OR usuario.funcionarioMatriz = 1))"; | |
if ($rm) { | |
$where[] = "itemMaterial.rm = '{$rm}'"; |