Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/exportFE/src/FatturaElettronica.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ protected static function getDatiTrasmissione($fattura)
$result['ContattiTrasmittente']['Email'] = $anagrafica['email'];
}

// Inizializzazione PEC solo se anagrafica azienda e codice destinatario non compilato, per privato e PA la PEC non serve
if (empty($cliente['codice_destinatario']) && $cliente['tipo'] == 'Azienda' && !empty($cliente['pec'])) {
// Include the recipient PEC when no recipient code is set and the client has a PEC (company or private)
if (empty($cliente['codice_destinatario']) && in_array($cliente['tipo'], ['Azienda', 'Privato']) && !empty($cliente['pec'])) {
$result['PECDestinatario'] = $cliente['pec'];
}

Expand Down