Commit Graph

10 Commits

Author SHA1 Message Date
4dbc9cfc52 Fix collation error by using BINARY in LIKE operations
Added BINARY keyword to LIKE clauses in Search() function to bypass
collation issues. BINARY forces byte-by-byte comparison and avoids
'Illegal mix of collations' error when connection uses utf8mb4
and table uses latin1_swedish_ci.
2026-01-07 23:17:50 -06:00
a0ada73c81 Remove COLLATE clause from LIKE operations
Removed COLLATE specification from Search() LIKE clauses to fix
'COLLATION latin1_swedish_ci is not valid for CHARACTER SET utf8mb4' error.
Let MySQL use the table's default collation for LIKE comparisons.
2026-01-07 23:10:38 -06:00
d28414cff1 Fix collation mismatch error in productos search
Added COLLATE latin1_swedish_ci to LIKE operations in Search()
function to prevent 'Illegal mix of collations' error when searching
by modelo or codigoBarra. The database uses latin1_swedish_ci but
PHP 8 uses UTF-8 encoding.
2026-01-07 23:06:54 -06:00
c616072d6c Fix undefined variable $pages in Search() function - move initialization
Moved $pages array initialization outside of if/else block to prevent
undefined variable warning when search returns results (if block executes).
$pages is now initialized before the conditional logic.
2026-01-07 23:01:55 -06:00
5cdfc9c39a Fix undefined variable $pages in producto Search() function
Initialized $pages array in else block to prevent undefined variable
warning when no search criteria are provided and SQL returns results.
2026-01-07 22:58:08 -06:00
6b14b2620c Fix incorrect closing comment on Search3 function
Changed closing comment from '//Search' to '//Search3' to match
the actual function name, preventing confusion about which function
is ending.
2026-01-07 22:38:25 -06:00
b7ac70b629 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.
2026-01-07 22:37:21 -06:00
8878154a2b Fix undefined variable $pages in producto Search functions
Fixed 'Undefined variable $pages' error when no search criteria
are provided in Search3(), Search2(), and SearchDuplicados()
functions by initializing $pages array with proper pagination
structure in the else blocks.
2026-01-07 22:34:58 -06:00
3a5afa82fe Fix systematic errors in pagination, sucursal warnings, and fatal count() errors across multiple modules 2026-01-07 01:06:27 -06:00
3ae4be5957 Primer commit del sistema avantika sin cambios 2026-01-06 19:42:24 -06:00