Skip to content

Commit

Permalink
Fix minore
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Aug 7, 2024
1 parent 65115b9 commit aff534e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fatture/src/Gestori/Bollo.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function manageRigaMarcaDaBollo()
$riga->prezzo_unitario = $marca_da_bollo;
$riga->qta = 1;
$riga->descrizione = setting('Descrizione addebito bollo');
$riga->id_iva = $righe_bollo->idiva;
$riga->id_iva = $righe_bollo->idiva ?: database()->fetchOne('SELECT `id` FROM `co_iva` WHERE `name` = "Non soggetta - altri casi"')['id'];
$riga->idconto = setting('Conto predefinito per la marca da bollo');

// Applico la rivalsa alla marca da bollo se previsto
Expand Down

0 comments on commit aff534e

Please sign in to comment.