This commit is contained in:
Bacca97 2018-03-22 19:10:29 +01:00
parent 0de8fe29b7
commit a43ad5644b
1 changed files with 37 additions and 15 deletions

View File

@ -246,17 +246,30 @@ foreach ($v_iva as $key => $value) {
</p>'; </p>';
} }
} }
echo '
<table class="table">';
echo '
<tr>';
if(abs($records[0]['bollo']) > 0){
echo '
<td width="85%">';
}else{
echo '
<td width="100%">';
}
if (!empty($records[0]['note'])) { if (!empty($records[0]['note'])) {
echo ' echo '
<br>
<p class="small-bold">'.tr('Note', [], ['upper' => true]).':</p> <p class="small-bold">'.tr('Note', [], ['upper' => true]).':</p>
<p>'.nl2br($records[0]['note']).'</p>'; <p>'.nl2br($records[0]['note']).'</p>';
} }
echo '
</td>';
if(abs($records[0]['bollo']) > 0){
echo '
<td width="15%" align="right">';
}
if (abs($records[0]['bollo']) > 0) { if (abs($records[0]['bollo']) > 0) {
echo ' echo '
<br>
<table style="width: 20mm; font-size: 50%; text-align: center" class="table-bordered"> <table style="width: 20mm; font-size: 50%; text-align: center" class="table-bordered">
<tr> <tr>
<td style="height: 20mm;"> <td style="height: 20mm;">
@ -266,6 +279,15 @@ if (abs($records[0]['bollo']) > 0) {
</tr> </tr>
</table>'; </table>';
} }
if(abs($records[0]['bollo']) > 0){
echo '
</td>';
}
echo '
</tr>';
echo '
</table>';
// Info per il footer // Info per il footer
$imponibile = sum($imponibile); $imponibile = sum($imponibile);