QR Code Fixes
This commit is contained in:
parent
5e5e0f5848
commit
7f056f292f
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ class SwissQrGenerator
|
|||
}
|
||||
else
|
||||
{
|
||||
$invoice_number = $this->invoice->number;
|
||||
$invoice_number = iconv("UTF-8", "ASCII", $this->invoice->number);
|
||||
}
|
||||
|
||||
if(strlen($this->company->present()->besr_id()) > 1)
|
||||
|
|
@ -141,7 +141,7 @@ class SwissQrGenerator
|
|||
// Optionally, add some human-readable information about what the bill is for.
|
||||
$qrBill->setAdditionalInformation(
|
||||
QrBill\DataGroup\Element\AdditionalInformation::create(
|
||||
$this->invoice->public_notes ? substr($this->invoice->public_notes, 0, 139) : ctrans('texts.invoice_number_placeholder', ['invoice' => $invoice_number])
|
||||
$this->invoice->public_notes ? substr($this->invoice->public_notes, 0, 139) : ctrans('texts.invoice_number_placeholder', ['invoice' => $this->invoice->number])
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue