';
$previous_number = $previous_number ?: null;
if ($record['numero'] == $previous_number) {
echo '
|
|
|
|
| ';
} else {
echo '
'.(($dir == 'uscita') ? $record['numero'] : '-').' |
'.$record['numero_esterno'].' |
'.Translator::numbertoLocale($record['data']).' |
'.$record['codice_tipo_documento_fe'].' |
'.$record['codice_anagrafica'].' / '.tr($record['ragione_sociale'], [], ['upper' => true]).' |
'.moneyFormat($record['totale']).' | ';
}
echo '
'.moneyFormat($record['subtotale']).' |
'.Translator::numberToLocale($record['percentuale'], 0).' |
'.$record['desc_iva'].' |
'.moneyFormat($record['iva']).' |
';
$previous_number = $record['numero'];
$iva[$record['desc_iva']][] = $record['iva'];
$totale[$record['desc_iva']][] = $record['subtotale'];