mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Bugfix esportazione bulk stampe fattura
This commit is contained in:
parent
207108e02b
commit
9ea9fdbfaf
@ -25,11 +25,13 @@ switch (post('op')) {
|
|||||||
$rapportino_nome = sanitizeFilename($numero.' '.$r['data'].' '.$r['ragione_sociale'].'.pdf');
|
$rapportino_nome = sanitizeFilename($numero.' '.$r['data'].' '.$r['ragione_sociale'].'.pdf');
|
||||||
$filename = slashes($dir.'tmp/'.$rapportino_nome);
|
$filename = slashes($dir.'tmp/'.$rapportino_nome);
|
||||||
|
|
||||||
$_GET['iddocumento'] = $r['id']; // Fix temporaneo per la stampa
|
$iddocumento = $r['id'];
|
||||||
$iddocumento = $r['id']; // Fix temporaneo per la stampa
|
|
||||||
$ptype = 'fatture';
|
$ptype = 'fatture';
|
||||||
|
|
||||||
|
$print = $dbo->fetchArray('SELECT id, previous FROM zz_prints WHERE directory = '.prepare($ptype).' ORDER BY main DESC LIMIT 1');
|
||||||
|
$id_print = $print[0]['id'];
|
||||||
|
|
||||||
require DOCROOT.'/pdfgen.php';
|
Prints::render($id_print, $iddocumento, $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
$dir = slashes($dir);
|
$dir = slashes($dir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user