1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Bugfix esportazione bulk stampe fattura

This commit is contained in:
Bacca97
2018-05-14 10:27:43 +02:00
parent 207108e02b
commit 9ea9fdbfaf

View File

@ -25,11 +25,13 @@ switch (post('op')) {
$rapportino_nome = sanitizeFilename($numero.' '.$r['data'].' '.$r['ragione_sociale'].'.pdf');
$filename = slashes($dir.'tmp/'.$rapportino_nome);
$_GET['iddocumento'] = $r['id']; // Fix temporaneo per la stampa
$iddocumento = $r['id']; // Fix temporaneo per la stampa
$iddocumento = $r['id'];
$ptype = 'fatture';
require DOCROOT.'/pdfgen.php';
$print = $dbo->fetchArray('SELECT id, previous FROM zz_prints WHERE directory = '.prepare($ptype).' ORDER BY main DESC LIMIT 1');
$id_print = $print[0]['id'];
Prints::render($id_print, $iddocumento, $filename);
}
$dir = slashes($dir);