Skip to content

Commit f5f5b97

Browse files
committed
fix: template stampa ddt
1 parent c29750c commit f5f5b97

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

templates/ddt/body.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,15 @@
2424

2525
// Creazione righe fantasma ottimizzata
2626
$autofill = new Util\Autofill($options['pricing'] ? 7 : 4, 70);
27-
$rows_per_page = ($documento['note'] || $options['pricing'] ? ($tipo_doc == 'Ddt in uscita' ? 21 : 24) : 27);
27+
28+
if ($options['pricing']) {
29+
$rows_per_page = 23;
30+
} elseif ($documento['note']) {
31+
$rows_per_page = 20;
32+
} else {
33+
$rows_per_page = 26;
34+
}
35+
2836
$autofill->setRows($rows_per_page, 0, $options['last-page-footer'] ? 34 : $rows_per_page);
2937

3038
// Calcolo ottimizzato delle righe occupate dall'intestazione

0 commit comments

Comments
 (0)