mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Remove _ fields if nothing is populates in Swiss QR Codes
This commit is contained in:
parent
5d1dc68739
commit
f68d9ad37d
@ -87,10 +87,10 @@ class SwissQrGenerator
|
||||
$qrBill->setUltimateDebtor(
|
||||
QrBill\DataGroup\Element\StructuredAddress::createWithStreet(
|
||||
substr($this->client->present()->name(), 0 , 70),
|
||||
$this->client->address1 ? substr($this->client->address1, 0 , 70) : '_',
|
||||
$this->client->address2 ? substr($this->client->address2, 0 , 16) : '_',
|
||||
$this->client->postal_code ? substr($this->client->postal_code, 0, 16) : '_',
|
||||
$this->client->city ? substr($this->client->city, 0, 35) : '_',
|
||||
$this->client->address1 ? substr($this->client->address1, 0 , 70) : ' ',
|
||||
$this->client->address2 ? substr($this->client->address2, 0 , 16) : ' ',
|
||||
$this->client->postal_code ? substr($this->client->postal_code, 0, 16) : ' ',
|
||||
$this->client->city ? substr($this->client->city, 0, 35) : ' ',
|
||||
'CH'
|
||||
));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user