1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

restrict length of reference for e-invoice

This commit is contained in:
David Bomba 2023-07-26 18:02:12 +10:00
parent 84885837ab
commit 2dbf6cc4ff

View File

@ -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;
}