<br />
<b>Warning</b>:  include(../reportes/_filtrosbase.php): failed to open stream: No such file or directory in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/generarexcel/nota_det_documentos.php</b> on line <b>6</b><br />
<br />
<b>Warning</b>:  include(../reportes/_filtrosbase.php): failed to open stream: No such file or directory in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/generarexcel/nota_det_documentos.php</b> on line <b>6</b><br />
<br />
<b>Warning</b>:  include(): Failed opening '../reportes/_filtrosbase.php' for inclusion (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/generarexcel/nota_det_documentos.php</b> on line <b>6</b><br />
<br />
<b>Notice</b>:  Trying to get property 'idnota' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/generarexcel/nota_det_documentos.php</b> on line <b>18</b><br />
<br />
<b>Notice</b>:  Undefined variable: FILTRO_BASE_VENTAS in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/generarexcel/nota_det_documentos.php</b> on line <b>30</b><br />
Error al retornarSQL (SELECT 
CONCAT(ven.serie_doc, '-', ven.nro_doc) codigo_doc, 
ven.idventa, ven.fecha_venta, 
cli.razon_social cli_rsocial, 
SUM(det.monto_total) total_venta, 
SUM(det.monto_margen) total_margen, 
ven.observaciones  
FROM ventas ven 
INNER JOIN empresas cli ON cli.idempresa = ven.idempresa AND cli.es_cliente = 1 
LEFT JOIN detalles_ventas det ON det.idventa = ven.idventa AND det.vigencia = 1 AND det.fue_devuelto IS NULL 
WHERE ven.idnotareparto =   
GROUP BY ven.idventa):You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GROUP BY ven.idventa' at line 12