X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FTemplate%2FOpenDocument.pm;h=66d8f83ac3f5bbae8924020e4bb1f64cf5eeba41;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hp=d8823b4ab4db7cf068d15e9f4644dfa020a33372;hpb=11e8489d013880e256b666b4e8454e7cd744c750;p=kivitendo-erp.git diff --git a/SL/Template/OpenDocument.pm b/SL/Template/OpenDocument.pm index d8823b4ab..66d8f83ac 100644 --- a/SL/Template/OpenDocument.pm +++ b/SL/Template/OpenDocument.pm @@ -653,8 +653,15 @@ sub generate_qr_code { 'countrycode' => $biller_countrycode, ); + my $amount; + if ($form->{'qrbill_without_amount'}) { + $amount = ''; + } else { + $amount = sprintf("%.2f", $form->parse_amount(\%::myconfig, $form->{'total'})); + } + my %payment_information = ( - 'amount' => sprintf("%.2f", $form->parse_amount(\%::myconfig, $form->{'total'})), + 'amount' => $amount, 'currency' => $form->{'currency'}, );