From: Stephan Köhler Date: Thu, 26 Jan 2006 14:37:26 +0000 (+0000) Subject: Merge von 829,831 aus unstable: Bugfix 270 X-Git-Tag: release-2.2.0~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b59ec96925334124e8e126e467181b766b7c701f;hp=921adf5b31fe273406ef57fc411aa680be4544e7;p=kivitendo-erp.git Merge von 829,831 aus unstable: Bugfix 270 Rabatt wurde fehlerhaft uebernommen beim Umwandeln von Angebot in Auftrag. Fixes Bug#270 Bei der Umwandlung von Angeboten/Anfragen in Auftraege wurden verschiedene Felder beschnitten/flasch formatiert --- diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index e05d0130a..f9907cbf2 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -229,11 +229,14 @@ sub prepare_order { map { $form->{"${_}_$i"} = $ref->{$_} } keys %{$ref}; } - for my $i (1 .. $form->{rowcount}) { - $form->{"discount_$i"} = - $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100); - + if ($form->{id}) { + $form->{"discount_$i"} = + $form->format_amount(\%myconfig, $form->{"discount_$i"} * 100); + } else { + $form->{"discount_$i"} = + $form->format_amount(\%myconfig, $form->{"discount_$i"}); + } ($dec) = ($form->{"sellprice_$i"} =~ /\.(\d+)/); $dec = length $dec; $decimalplaces = ($dec > 2) ? $dec : 2; @@ -243,7 +246,7 @@ sub prepare_order { $form->{"sellprice_$i"} = $form->format_amount(\%myconfig, $form->{"sellprice_$i"}, - $decimalplaces); + $decimalplaces); (my $dec_qty) = ($form->{"qty_$i"} =~ /\.(\d+)/); $dec_qty = length $dec_qty; @@ -831,10 +834,15 @@ Bearbeiten des $form->{heading}
. $locale->text('Save as new') . qq|"> |; - if ($form->{type} =~ /quotation$/) { + if ($form->{type} =~ /sales_quotation$/) { print qq| |; + . $locale->text('Sales Order') . qq|">|; + } + if ($form->{type} =~ /request_quotation$/) { + print qq| +|; } print qq| {type} = "purchase_order";