diff --git a/plugins/exportFE/src/FatturaElettronica.php b/plugins/exportFE/src/FatturaElettronica.php index b5ddf6c24..93c5e0796 100755 --- a/plugins/exportFE/src/FatturaElettronica.php +++ b/plugins/exportFE/src/FatturaElettronica.php @@ -1453,11 +1453,14 @@ class FatturaElettronica if (!empty($banca->nome)) { $pagamento['IstitutoFinanziario'] = $banca->nome; } + if (!empty($banca->iban)) { $pagamento['IBAN'] = clean($banca->iban); } + + // BIC senza parte per filiale (causa errori di validazione) if (!empty($banca->bic)) { - $pagamento['BIC'] = $banca->bic; + $pagamento['BIC'] = substr($banca->bic, 0, 8); } $result[]['DettaglioPagamento'] = $pagamento;