From 2dbf6cc4ff6e47b09363f571f06f4dff502530a8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 26 Jul 2023 18:02:12 +1000 Subject: [PATCH] restrict length of reference for e-invoice --- app/Services/Invoice/EInvoice/FacturaEInvoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Invoice/EInvoice/FacturaEInvoice.php b/app/Services/Invoice/EInvoice/FacturaEInvoice.php index 039d4aebf7a5..b497dffa9d8c 100644 --- a/app/Services/Invoice/EInvoice/FacturaEInvoice.php +++ b/app/Services/Invoice/EInvoice/FacturaEInvoice.php @@ -214,7 +214,7 @@ class FacturaEInvoice extends AbstractService { $po = $this->invoice->po_number ?? ''; - $this->fac->setReferences($po, $this->invoice->custom_value1, $this->invoice->custom_value2); + $this->fac->setReferences($po, substr($this->invoice->custom_value1, 0, 20), $this->invoice->custom_value2); return $this; }