From fdba7ee0deafeebfa9d06c41c4790b312db443c5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 8 May 2023 10:36:30 +1000 Subject: [PATCH] ES E-Invoicing --- app/Services/Invoice/EInvoice/FacturaEInvoice.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Services/Invoice/EInvoice/FacturaEInvoice.php b/app/Services/Invoice/EInvoice/FacturaEInvoice.php index 2b28468ad9ed..cd6a3e5bb75a 100644 --- a/app/Services/Invoice/EInvoice/FacturaEInvoice.php +++ b/app/Services/Invoice/EInvoice/FacturaEInvoice.php @@ -169,6 +169,7 @@ class FacturaEInvoice extends AbstractService foreach($this->invoice->line_items as $item) { $this->fac->addItem(new FacturaeItem([ + 'name' => $item->product_key, 'description' => $item->notes, 'quantity' => $item->quantity, 'unitPrice' => $item->cost, @@ -302,7 +303,7 @@ class FacturaEInvoice extends AbstractService "email" => $this->invoice->client->present()->email(), "phone" => $this->invoice->client->present()->phone(), "fax" => "", - "website" => $this->invoice->client->present()->website(), + "website" => substr($this->invoice->client->present()->website(), 0 ,60), "contactPeople" => $this->invoice->client->present()->first_name()." ".$this->invoice->client->present()->last_name(), // "cnoCnae" => "04791", // Clasif. Nacional de Act. Económicas // "ineTownCode" => "280796" // Cód. de municipio del INE @@ -317,7 +318,7 @@ class FacturaEInvoice extends AbstractService { // $ssl_cert = file_get_contents(base_path('e_invoice_cert.p12')); - // $this->fac->sign($ssl_cert, null, "SuperSecrethere"); + // $this->fac->sign($ssl_cert, null, "SuperSecretPassword"); return $this; }