Fix template fatture

This commit is contained in:
Pek5892 2024-05-03 16:53:48 +02:00
parent 01cf1379d0
commit 8c20974e5b
1 changed files with 8 additions and 4 deletions

View File

@ -26,10 +26,7 @@ $prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA');
// Creazione righe fantasma
$autofill = new Util\Autofill(6, 40);
$rows_per_page = $fattura_accompagnatoria ? 13 : 18;
if (!empty($options['last-page-footer'])) {
$rows_per_page += 7;
}
$rows_per_page = $fattura_accompagnatoria ? 13 : 25;
$autofill->setRows($rows_per_page);
// Intestazione tabella per righe
@ -55,6 +52,13 @@ if (setting('Raggruppa attività per tipologia in fattura')) {
$righe = $documento->getRighe();
}
if (count($righe) > 25) {
if (!empty($options['last-page-footer'])) {
$rows_per_page += 5;
$autofill->setRows($rows_per_page);
}
}
$num = 0;
if (!setting('Visualizza riferimento su ogni riga in stampa')) {