Skip to content

Commit 2642c18

Browse files
committed
fix: impostazione iva documenti
1 parent aa05fe7 commit 2642c18

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Common/Components/Component.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,11 @@ public function copiaIn(Document $document, $qta = null, $evadi_qta_parent = tru
281281
$model->customInitCopiaIn($this);
282282

283283
if (empty($model->idiva)) {
284-
if (!empty($this->idiva)) {
284+
if (($this->idiva)) {
285285
$model->idiva = $this->idiva;
286286
} else {
287287
$model->idiva = setting('Iva predefinita');
288+
unset ($attributes['idiva']);
288289
}
289290
}
290291

0 commit comments

Comments
 (0)