Aggiunta inserimento seriale in fatture di acquisto emesse

This commit is contained in:
Pek5892 2023-03-08 14:22:46 +01:00
parent efc6caaca2
commit 6651bfd52f
1 changed files with 16 additions and 2 deletions

View File

@ -242,7 +242,7 @@ foreach ($righe as $riga) {
echo '
<td class="text-center">';
if ($record['stato'] != 'Pagato' && $record['stato'] != 'Emessa') {
if ($dir == 'uscita'){
echo '
<div class="input-group-btn">';
@ -252,6 +252,20 @@ foreach ($righe as $riga) {
<i class="fa fa-barcode"></i>
</a>';
}
} else if ($record['stato'] != 'Pagato' && $record['stato'] != 'Emessa') {
echo '
<div class="input-group-btn">';
if ($riga->isArticolo() && !empty($riga->abilita_serial)) {
echo '
<a class="btn btn-primary btn-xs" title="'.tr('Modifica seriali della riga').'" onclick="modificaSeriali(this)">
<i class="fa fa-barcode"></i>
</a>';
}
}
if ($record['stato'] != 'Pagato' && $record['stato'] != 'Emessa') {
if ($riga->id != $fattura->rigaBollo->id) {
echo '