From: Steven Schubiger Date: Thu, 3 Mar 2022 12:32:48 +0000 (+0100) Subject: Swiss QR-Bill: QrBill.pm: Ă„nderungen Syntax betreffend X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~110 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=97031bd9eabb508074548d5669bc817fd667071d;p=kivitendo-erp.git Swiss QR-Bill: QrBill.pm: Ă„nderungen Syntax betreffend --- diff --git a/SL/Helper/QrBill.pm b/SL/Helper/QrBill.pm index 935125213..c448eb28b 100644 --- a/SL/Helper/QrBill.pm +++ b/SL/Helper/QrBill.pm @@ -108,7 +108,7 @@ sub _init_check { sub generate { my $self = shift; - my $out_file = defined $_[0] ? $_[0] : $Config{out_file}; + my $out_file = $_[0] // $Config{out_file}; $self->{qrcode} = $self->_qrcode(); $self->{cross} = $self->_cross(); @@ -202,7 +202,7 @@ SL::Helper::QrBill - Helper methods for generating Swiss QR-Code \%invoice_recipient_data, \%ref_nr_data, ); - $qr_image->generate($outfile); + $qr_image->generate($out_file); } or do { local $_ = $@; chomp; my $error = $_; $::form->error($::locale->text('QR-Image generation failed: ' . $error));