Update FatturaElettronica.php

This commit is contained in:
Luca 2019-03-28 14:26:21 +01:00
parent 41e965423a
commit a3d9d5ccd5
1 changed files with 3 additions and 3 deletions

View File

@ -163,11 +163,11 @@ class FatturaElettronica
$sede->indirizzo = $info['Indirizzo'];
$sede->cap = $info['CAP'];
$sede->citta = $info['Comune'];
$sede->indirizzo = $info['Indirizzo'];
$sede->nazione()->associate(Nazione::where('iso2', $info['Nazione'])->first());
if (!empty($info['Provincia'])) {
if (!empty($info['Provincia'])) {
$sede->provincia = $info['Provincia'];
}
$sede->nazione()->associate(Nazione::where('iso2', $info['Nazione'])->first());
$contatti = $xml['Contatti'];
if (!empty($contatti)) {