Fix ordinamento riga bollo in fattura

This commit is contained in:
MatteoPistorello 2022-12-16 15:53:39 +01:00
parent 967b6eb9e8
commit 150d9c1a5b
1 changed files with 5 additions and 2 deletions

View File

@ -233,7 +233,7 @@ foreach ($righe as $riga) {
echo ' echo '
<td class="text-center">'; <td class="text-center">';
if ($record['stato'] != 'Pagato' && $record['stato'] != 'Emessa' && $riga->id != $fattura->rigaBollo->id) { if ($record['stato'] != 'Pagato' && $record['stato'] != 'Emessa') {
echo ' echo '
<div class="input-group-btn">'; <div class="input-group-btn">';
@ -244,6 +244,7 @@ foreach ($righe as $riga) {
</a>'; </a>';
} }
if ($riga->id != $fattura->rigaBollo->id) {
echo ' echo '
<a class="btn btn-xs btn-info" title="'.tr('Aggiungi informazioni FE per questa riga').'" onclick="apriInformazioniFE(this)"> <a class="btn btn-xs btn-info" title="'.tr('Aggiungi informazioni FE per questa riga').'" onclick="apriInformazioniFE(this)">
<i class="fa fa-file-code-o"></i> <i class="fa fa-file-code-o"></i>
@ -255,8 +256,10 @@ foreach ($righe as $riga) {
<a class="btn btn-xs btn-danger" title="'.tr('Rimuovi riga').'" onclick="rimuoviRiga([$(this).closest(\'tr\').data(\'id\')])"> <a class="btn btn-xs btn-danger" title="'.tr('Rimuovi riga').'" onclick="rimuoviRiga([$(this).closest(\'tr\').data(\'id\')])">
<i class="fa fa-trash"></i> <i class="fa fa-trash"></i>
</a> </a>';
}
echo '
<a class="btn btn-xs btn-default handle" title="'.tr('Modifica ordine delle righe').'"> <a class="btn btn-xs btn-default handle" title="'.tr('Modifica ordine delle righe').'">
<i class="fa fa-sort"></i> <i class="fa fa-sort"></i>
</a> </a>