We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76cadb commit 9afd4f6Copy full SHA for 9afd4f6
1 file changed
plugins/importFE/src/FatturaElettronica.php
@@ -264,15 +264,13 @@ public function saveAnagrafica($type = null)
264
265
if (!empty($info['codice_fiscale'])) {
266
$anagrafica->codice_fiscale = $info['codice_fiscale'];
267
- $anagrafica->tipo = 'Privato';
268
}
269
270
-
271
if (!empty($info['partita_iva'])) {
272
$anagrafica->partita_iva = $info['partita_iva'];
273
- $anagrafica->tipo = 'Azienda';
274
275
+ $anagrafica->tipo = $this->getHeader()['DatiTrasmissione']['FormatoTrasmissione'] == 'FPR12' ? 'Azienda' : 'Ente pubblico';
276
277
// Informazioni sull'anagrafica
278
if (!empty($info['rea'])) {
0 commit comments