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 18184f1 commit f76cadbCopy full SHA for f76cadb
1 file changed
plugins/importFE/src/FatturaElettronica.php
@@ -262,13 +262,17 @@ public function saveAnagrafica($type = null)
262
TipoAnagrafica::where('name', $type)->first()->id,
263
]);
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
- if (!empty($info['codice_fiscale'])) {
- $anagrafica->codice_fiscale = $info['codice_fiscale'];
- }
276
277
// Informazioni sull'anagrafica
278
if (!empty($info['rea'])) {
0 commit comments