X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fis.pl;h=765635f5d4dfd2441ad56d567c4847a76419338a;hb=501107ad47b6385a9986aab9048b98ed5784182e;hp=163ac1461d589c96da7d55b6cf7d541ed42dadd6;hpb=5563e1162d014b09d591fd68e5317ebbb2212148;p=kivitendo-erp.git diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index 163ac1461..765635f5d 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -138,6 +138,10 @@ sub invoice_links { $cp_id = $form->{cp_id}; IS->get_customer(\%myconfig, \%$form); + #quote all_customer Bug 133 + foreach $ref (@{ $form->{all_customer} }) { + $ref->{name} = $form->quote($ref->{name}); + } if ($id) { $form->{id} = $id; } @@ -158,7 +162,7 @@ sub invoice_links { } # currencies - @curr = split /:/, $form->{currencies}; + @curr = split(/:/, $form->{currencies}); chomp $curr[0]; $form->{defaultcurrency} = $curr[0]; @@ -351,12 +355,12 @@ sub form_header { if (@{ $form->{SHIPTO} }) { $form->{selectshipto} = ""; foreach $item (@{ $form->{SHIPTO} }) { - if ($item->{id} == $form->{shipto_id}) { + if ($item->{shipto_id} == $form->{shipto_id}) { $form->{selectshipto} .= - ""; + ""; } else { $form->{selectshipto} .= - ""; + ""; } } @@ -369,7 +373,7 @@ sub form_header { $shipto = qq| | . $locale->text('Shipping Address') . qq| - + |; @@ -381,6 +385,9 @@ sub form_header { s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; } + #quote customer Bug 133 + $form->{selectcustomer} = $form->quote($form->{selectcustomer}); + #build contacts if ($form->{all_contacts}) { @@ -652,7 +659,7 @@ sub form_header { $dunning | . $locale->text('Record in') . qq| - + $taxzone @@ -1209,7 +1216,7 @@ sub update { } else { - $sellprice = $form->format_amount(\%myconfig, $form->{"sellprice_$i"}); + $sellprice = $form->parse_amount(\%myconfig, $form->{"sellprice_$i"}); map { $form->{item_list}[$i]{$_} =~ s/\"/"/g } qw(partnumber description unit);