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:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user