Remove _ fields if nothing is populates in Swiss QR Codes
This commit is contained in:
parent
5d1dc68739
commit
f68d9ad37d
1 changed files with 4 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue