diff --git a/app/Services/EDocument/Standards/FatturaPA.php b/app/Services/EDocument/Standards/FatturaPA.php index 069a1811764b..267064569fa4 100644 --- a/app/Services/EDocument/Standards/FatturaPA.php +++ b/app/Services/EDocument/Standards/FatturaPA.php @@ -185,7 +185,7 @@ class FatturaPA extends AbstractService $cedentePrestatore->setDatiAnagrafici($datiAnagrafici); $sede = new Sede(Indirizzo: $this->invoice->company->settings->address1, - CAP: $this->invoice->company->settings->postal_code, + CAP: (int)$this->invoice->company->settings->postal_code, Comune: $this->invoice->company->settings->city, Provincia: $this->invoice->company->settings->state); diff --git a/tests/Feature/EInvoice/FatturaPATest.php b/tests/Feature/EInvoice/FatturaPATest.php index 16b655931266..bb683e10acb0 100644 --- a/tests/Feature/EInvoice/FatturaPATest.php +++ b/tests/Feature/EInvoice/FatturaPATest.php @@ -41,8 +41,6 @@ class FatturaPATest extends TestCase $fat = new FatturaPA($this->invoice); $xml = $fat->run(); - // nlog($xml); - $this->assertnotNull($xml); } }