<br />
<b>Notice</b>:  Trying to get property 'nrofilas' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/reportes/repo_detalladoventas.php</b> on line <b>9</b><br />
<br />
<b>Notice</b>:  Trying to get property 'nropag' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/reportes/repo_detalladoventas.php</b> on line <b>10</b><br />
<br />
<b>Notice</b>:  Trying to get property 'finicio' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/reportes/repo_detalladoventas.php</b> on line <b>34</b><br />
<br />
<b>Notice</b>:  Trying to get property 'ffinal' of non-object in <b>/home/hostuper/mallascar.hostuperu.com/apimallascar_asdas/reportes/repo_detalladoventas.php</b> on line <b>34</b><br />
Error al retornarSQLConn (SELECT 
JSON_ARRAYAGG(
	JSON_OBJECT(
		'esservicio', det.esservicio,
		'cantidad', det.cantidad,
		'descripcion', det.descripcion,
		'precio_venta', det.precio_venta,
		'importe', det.precio_venta * det.cantidad,
		'utilidad', (det.precio_venta - det.precio_compra) * det.cantidad
	)
) detalles, 
JSON_UNQUOTE(JSON_EXTRACT(ven.creacion, '$.usuario')) usuario, 
SUM(det.cantidad * det.precio_venta) total_venta, 
SUM(det.cantidad * (det.precio_venta - det.precio_compra)) total_utilidades, 
cli.razon_social cliente, 
vehi.marca, vehi.placa, ven.* 
FROM ven_ventas ven 
INNER JOIN con_contactos cli ON cli.idcontacto = ven.idcontacto 
LEFT JOIN con_vehiculos vehi ON vehi.idvehiculo = ven.idvehiculo 
LEFT JOIN ven_detalle_venta det ON det.idventa = ven.idventa 
WHERE ven.vigencia = 1 AND ven.fecha_venta BETWEEN '' AND '' GROUP BY ven.idventa ORDER BY ven.nro_doc DESC LIMIT  OFFSET 0):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 'OFFSET 0' at line 21