Skip to content

Commit fdd18d2

Browse files
committed
fix: stampa fatture
1 parent e532c63 commit fdd18d2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

templates/fatture/body.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
// Creazione righe fantasma ottimizzata
2929
$autofill = new Util\Autofill(6, 70);
30-
$rows_per_page = 25;
30+
$rows_per_page = $fattura_accompagnatoria ? 20 : 25;
3131

3232
// Calcolo ottimizzato delle righe da sottrarre
3333
$c = 0;
@@ -49,11 +49,8 @@
4949
}
5050

5151
// Diminuisco le righe disponibili per pagina
52-
if ($fattura_accompagnatoria) {
53-
$autofill->setRows(20 - $c, 0, 35);
54-
} else {
55-
$autofill->setRows($rows_per_page - $c, 0, 30);
56-
}
52+
$autofill->setRows($rows_per_page - $c, 0, 35 - $c);
53+
5754

5855
// Intestazione tabella per righe
5956
echo "

0 commit comments

Comments
 (0)