sprain/php-swiss-qr-bill

Receipt part with long address

sdespont opened this issue · 2 comments

I can't find where the documentation explains that the receiving room can't have multiple lines.

Address like:

$qrBill->setCreditor(
    QrBill\DataGroup\Element\CombinedAddress::create(
        'Robert Schneider AG',
        'p.a. My long-company-name Sàrl, Av. de la Gare 66',
        '2501 Biel',
        'CH'
    )
);

is printed like this:

    Robert Schneider AG
    2501 Biel

image

Because of

protected static function clearMultilines(array $lines): array

if ($forReceipt) {
$lines = self::clearMultilines($lines);
}

Can you confirm that this is the desired behavior?

It's desired behaviour because there were overlaps. It was discussed in #187 and this is probably a duplicate of #223.

@kohlerdominik ok, thanks for the quick answer