From 3e765bc97221a2628310999504234afc3fe658b6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 10 Apr 2024 22:21:24 +1000 Subject: [PATCH] Fixes for fattura pa --- app/Services/EDocument/Standards/FatturaPA.php | 2 +- tests/Feature/EInvoice/FatturaPATest.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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); } }