X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=bin%2Fmozilla%2Fap.pl;h=028f555b58deb2a42c987351fa305ed4ec801dda;hb=33fd3fa62717f07004f7533679d95f5084caf728;hp=fd86583ddd8eab1e6a2d55dd6973330ff8d50e3f;hpb=fea08973683369c6091de888fd53be628ff189fd;p=kivitendo-erp.git diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index fd86583dd..028f555b5 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -538,20 +538,23 @@ $jsscript $form->format_amount(\%myconfig, $form->{"amount_$i"}, 2); $form->{"tax_$i"} = $form->format_amount(\%myconfig, $form->{"tax_$i"}, 2); $selectAP_amount = $selectAP_amount_unquoted; + $re_amount = quotemeta($form->{"AP_amount_$i"}); $selectAP_amount =~ - s/option value=\"$form->{"AP_amount_$i"}\"/option value=\"$form->{"AP_amount_$i"}\" selected/; + s/option value=\"${re_amount}\"/option value=\"$form->{"AP_amount_$i"}\" selected/; $tax = $taxchart; $tax_selected = $form->{"taxchart_$i"}; $tax =~ s/value=\"$tax_selected\"/value=\"$tax_selected\" selected/; $tax = qq||; + my $korrektur = $form->{"korrektur_$i"} ? 'checked' : ''; + print qq| {"amount_$i"}> {"tax_$i"}> - + $tax {"project_id_$i"}>