Skip to content

Commit beafb0b

Browse files
committed
fix: stampa contratti con sconto
1 parent 40d3ce8 commit beafb0b

5 files changed

Lines changed: 2 additions & 25 deletions

File tree

templates/contratti/body.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@
310310
<b>'.moneyFormat($totale_imponibile, $d_totali).'</b>
311311
</th>
312312
</tr>';
313+
$autofill->set(3);
314+
$autofill->next();
313315
}
314316
if (!$options['no-iva']) {
315317
// IVA
@@ -459,8 +461,3 @@
459461
if (!empty($documento->condizioni_fornitura)) {
460462
echo '<pagebreak>'.$documento->condizioni_fornitura;
461463
}
462-
463-
// Pulizia cache per ottimizzare la memoria (solo per documenti con molte righe)
464-
if (count($righe) > 50) {
465-
Util\Autofill::clearTextHeightCache();
466-
}

templates/ddt/body.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,3 @@
229229
|autofill|
230230
</tbody>
231231
</table>';
232-
233-
// Pulizia cache per ottimizzare la memoria (solo per documenti con molte righe)
234-
if (count($righe) > 50) {
235-
Util\Autofill::clearTextHeightCache();
236-
}

templates/fatture/body.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,3 @@
284284
</tr>';
285285
echo '
286286
</table>';
287-
288-
// Pulizia cache per ottimizzare la memoria (solo per documenti con molte righe)
289-
if (count($righe) > 50) {
290-
Util\Autofill::clearTextHeightCache();
291-
}

templates/ordini/body.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,3 @@
418418
<p class="small-bold text-muted">'.tr('Note', [], ['upper' => true]).':</p>
419419
<p><small>'.nl2br((string) $documento['note']).'</small></p>';
420420
}
421-
422-
// Pulizia cache per ottimizzare la memoria (solo per documenti con molte righe)
423-
if (count($righe) > 50) {
424-
Util\Autofill::clearTextHeightCache();
425-
}

templates/preventivi/body.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -537,8 +537,3 @@
537537
if (!empty($documento->condizioni_fornitura)) {
538538
echo '<pagebreak>'.$documento->condizioni_fornitura;
539539
}
540-
541-
// Pulizia cache per ottimizzare la memoria (solo per documenti con molte righe)
542-
if (count($righe) > 50) {
543-
Util\Autofill::clearTextHeightCache();
544-
}

0 commit comments

Comments
 (0)