Notice: Undefined index: notacred in C:\Apache24\htdocs\test\ventas\regnc2.php on line 344

Notice: Undefined index: codclien in C:\Apache24\htdocs\test\ventas\regnc2.php on line 345

Notice: Undefined index: codvend in C:\Apache24\htdocs\test\ventas\regnc2.php on line 346

Notice: Undefined index: factnum in C:\Apache24\htdocs\test\ventas\regnc2.php on line 347

Notice: Undefined index: coduserx in C:\Apache24\htdocs\test\ventas\regnc2.php on line 349

Fatal error: Uncaught PDOException: SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'AND'. in C:\Apache24\htdocs\test\ventas\regnc2.php:283 Stack trace: #0 C:\Apache24\htdocs\test\ventas\regnc2.php(283): PDOStatement->execute() #1 C:\Apache24\htdocs\test\ventas\regnc2.php(353): asientoFact('') #2 {main} thrown in C:\Apache24\htdocs\test\ventas\regnc2.php on line 283