Boas, estou a usar o cloudexport e já consigo exportar para pdf, acontece que neste relatorio tenho um filtro de data inicio, fim e cliente. acontece que quando faço exportar para pdf ele da o seguinte erro:
(Well, I'm using cloudexport and I can already export to pdf, it turns out that in this report I have a start, end and client date filter. it happens that when I export to pdf it gives the following error:)
Notice: Undefined index: inicio in C:\xampp72\htdocs\systema\customRelatorioFaturaIVA\export.php on line 9
Notice: Undefined index: fim in C:\xampp72\htdocs\systema\customRelatorioFaturaIVA\export.php on line 10
Notice: Undefined index: cliente in C:\xampp72\htdocs\systema\customRelatorioFaturaIVA\export.php on line 11
Notice: Undefined index: table in C:\xampp72\htdocs\systema\customRelatorioFaturaIVA\export.php on line 12
Fatal error: Uncaught Exception: Query Error >> [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 ' "/", .doc_serie_fk) AS sid, .clienteEmpresa, .nomeClienteEmpresa, cast(.tot...' at line 1] >> SELECT CONCAT(.serieFatura, "/", .doc_serie_fk) AS sid, .clienteEmpresa, .nomeClienteEmpresa, cast(.totalCIVA AS DECIMAL(10,2)), cast(.totalSIVA AS DECIMAL(65,4)) as totalSIVA, cast(SUM(.totalCIVA-.totalSIVA) as DECIMAL(65,4)) as totalIVA, stock.id as stid, stock.descricao, stock.quantidade, stock.preco as PrecoPeloQualFoiVendido, cadastroartigos.taxaIVA, (cadastroartigos.taxaIVA / 100) + 1 as taxIVAFormatada, ((stock.preco / ((cadastroartigos.taxaIVA / 100) + 1))(cadastroartigos.taxaIVA/100)) as incidencia, cast(((stock.preco / ((cadastroartigos.taxaIVA / 100) + 1))(cadastroartigos.taxaIVA/100))*stock.quantidade AS DECIMAL(1 in C:\xampp72\htdocs\systema\vendor\koolreport\core\src\datasources\PdoDataSource.php on line 432 alguem sabe como resolver?
INDEX.PHP
<?php
require_once('functions.php');
add();
?>
<?php include(HEADER_TEMPLATE); ?>
<?php
require_once "MyReport.php";
$report = new MyReport(array(
"inicio"=>$_REQUEST['inicio'],
"fim"=>$_REQUEST['fim'],
"cliente"=>$_REQUEST['cliente'],
"table"=>$_REQUEST['table'],
"title"=>"Relatório de IVA Venda"
));
@$report->run()->render();