From 264b38c7465f95066b47588c2fbe85f102bd022c Mon Sep 17 00:00:00 2001
From: Philip Reetz
Date: Thu, 26 Jan 2006 09:22:41 +0000
Subject: [PATCH] Bei der Umwandlung von Angeboten/Anfragen in Auftraege wurden
verschiedene Felder beschnitten/flasch formatiert
---
bin/mozilla/oe.pl | 24 ++++++++++++++++++++----
1 file changed, 20 insertions(+), 4 deletions(-)
diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl
index b16352fd6..f9907cbf2 100644
--- a/bin/mozilla/oe.pl
+++ b/bin/mozilla/oe.pl
@@ -229,11 +229,13 @@ sub prepare_order {
map { $form->{"${_}_$i"} = $ref->{$_} } keys %{$ref};
}
-
for my $i (1 .. $form->{rowcount}) {
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;
@@ -244,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;
@@ -832,10 +834,15 @@ Bearbeiten des $form->{heading}
. $locale->text('Save as new') . qq|">
|;
- if ($form->{type} =~ /quotation$/) {
+ if ($form->{type} =~ /sales_quotation$/) {
+ print qq|
+|;
+ }
+ if ($form->{type} =~ /request_quotation$/) {
print qq|
|;
+ . $locale->text('Purchase Order') . qq|">|;
}
print qq|
{type} = "purchase_order";
--
2.20.1