diff --git a/templates/registro_iva/piece.php b/templates/registro_iva/piece.php index 392347139..efe573493 100644 --- a/templates/registro_iva/piece.php +++ b/templates/registro_iva/piece.php @@ -2,22 +2,33 @@ include_once __DIR__.'/../../core.php'; -echo ' - '; - $previous_number = $previous_number ?: null; + +if ($record['numero'] != $previous_number) { + if ($color == '#dddddd') { + $color = '#ffffff'; + } + else if ($color == '#ffffff') { + $color = '#dddddd'; + } +} + +echo ' + '; + if ($record['numero'] == $previous_number) { echo ' + '; } else { echo ' '.(($dir == 'uscita') ? $record['numero'] : '-').' '.$record['numero_esterno'].' - '.Translator::numbertoLocale($record['data']).' + '.Translator::datetoLocale($record['data']).' '.$record['codice_tipo_documento_fe'].' '.$record['codice_anagrafica'].' / '.tr($record['ragione_sociale'], [], ['upper' => true]).' '.moneyFormat($record['totale']).''; diff --git a/templates/registro_iva/top.php b/templates/registro_iva/top.php index 888e00999..5aa637279 100644 --- a/templates/registro_iva/top.php +++ b/templates/registro_iva/top.php @@ -22,18 +22,20 @@ if ('entrata' == $dir) { } $tipo = $dir == 'entrata' ? tr('Cliente') : tr('Fornitore'); +$i = 0; +$color = '#dddddd'; echo '

'.$titolo.'

- +
- - - + + + - +
'.tr('No prot.').''.tr('No doc.').'
'.tr('Prot.').''.tr('No doc.').' '.tr('Data').' '.tr('Tipo').' '.$tipo.''.tr('Tot doc.').''.tr('Tot. doc.').' '.tr('Imponibile').' % '.tr('Iva').'