Remove duplicate Search2() function declaration

Fixed 'Cannot redeclare Producto::Search2()' fatal error by
removing the duplicate function at line 778. The first Search2()
function (line 664) is the correct one with proper search
functionality including JOIN with proveedor table.
This commit is contained in:
2026-01-07 22:37:21 -06:00
parent 8878154a2b
commit b7ac70b629

View File

@@ -775,29 +775,6 @@ class Producto extends Main
}//SearchDuplicados
function Search2(){
$sqlAdd = '';
$sqlAdd .= ' AND proveedorId = "'.$this->proveedorId.'"';
$sqlAdd .= ' AND prodCatId = "'.$this->prodCatId.'"';
$sqlAdd .= ' AND prodSubcatId = "'.$this->prodSubcatId.'"';
$sql = 'SELECT *
FROM
producto
WHERE baja = "0"
'.$sqlAdd.'
ORDER BY
modelo';
$this->Util()->DBSelect($_SESSION['empresaId'])->setQuery($sql);
$productos = $this->Util()->DBSelect($_SESSION['empresaId'])->GetResult();
return $productos;
}//Search
function SearchVta(){
$sqlAdd = '';