1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-23 05:54:03 +01:00

Fix stampa registro iva

This commit is contained in:
Luca 2020-01-14 16:15:34 +01:00
parent ddede4dc30
commit b51ff04e1e
2 changed files with 22 additions and 9 deletions

View File

@ -2,22 +2,33 @@
include_once __DIR__.'/../../core.php';
echo '
<tr>';
$previous_number = $previous_number ?: null;
if ($record['numero'] != $previous_number) {
if ($color == '#dddddd') {
$color = '#ffffff';
}
else if ($color == '#ffffff') {
$color = '#dddddd';
}
}
echo '
<tr bgcolor="'.$color.'" >';
if ($record['numero'] == $previous_number) {
echo '
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>';
} else {
echo '
<td>'.(($dir == 'uscita') ? $record['numero'] : '-').'</td>
<td>'.$record['numero_esterno'].'</td>
<td>'.Translator::numbertoLocale($record['data']).'</td>
<td>'.Translator::datetoLocale($record['data']).'</td>
<td>'.$record['codice_tipo_documento_fe'].'</td>
<td>'.$record['codice_anagrafica'].' / '.tr($record['ragione_sociale'], [], ['upper' => true]).'</td>
<td>'.moneyFormat($record['totale']).'</td>';

View File

@ -22,18 +22,20 @@ if ('entrata' == $dir) {
}
$tipo = $dir == 'entrata' ? tr('Cliente') : tr('Fornitore');
$i = 0;
$color = '#dddddd';
echo '<h4><b>'.$titolo.'</b></h4>
<table class="table">
<table class="table table-condensed" border="0">
<thead>
<tr bgcolor="#dddddd">
<th>'.tr('N<sup>o</sup> prot.').'</th>
<th>'.tr('N<sup>o</sup> doc.').'</th>
<tr bgcolor="'.$color.'">
<th>'.tr('Prot.').'</th>
<th>'.tr('N<sup>o</sup>&nbsp;doc.').'</th>
<th>'.tr('Data').'</th>
<th>'.tr('Tipo').'</th>
<th>'.$tipo.'</th>
<th>'.tr('Tot doc.').'</th>
<th>'.tr('Tot.&nbsp;doc.').'</th>
<th>'.tr('Imponibile').'</th>
<th>%</th>
<th>'.tr('Iva').'</th>