From: Geoffrey Richardson Date: Fri, 29 May 2009 15:39:00 +0000 (+0000) Subject: discount formatting X-Git-Tag: release-2.6.0~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=747bdb8004c380b2580deb237a4ee956e411fea5;p=kivitendo-erp.git discount formatting Formatierung von discount, z.B. bei den Workflowschritten Rechnung -> Auftrag Auftrag -> Angebot Wahrscheinlich muß das noch an vielen anderen Stellen geändert werden. --- diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 3ba34ac39..b6eaf9ca1 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -885,7 +885,7 @@ sub order { for $i (1 .. $form->{rowcount}) { map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } - qw(ship qty sellprice listprice basefactor)); + qw(ship qty sellprice listprice basefactor discount)); } &prepare_order; @@ -941,7 +941,7 @@ sub quotation { map({ $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } - qw(ship qty sellprice listprice basefactor)); + qw(ship qty sellprice listprice basefactor discount)); } &prepare_order; diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index 7d0917b69..65782695b 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1612,7 +1612,7 @@ sub poso { ordnumber); for $i (1 .. $form->{rowcount}) { - map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice basefactor); + map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice basefactor discount); } my %saved_vars = map { $_ => $form->{$_} } grep { $form->{$_} } qw(currency); @@ -1669,7 +1669,7 @@ sub delivery_order { delete @{$form}{qw(id subject message cc bcc printed emailed queued creditlimit creditremaining discount tradediscount oldinvtotal closed delivered)}; for $i (1 .. $form->{rowcount}) { - map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice basefactor); + map { $form->{"${_}_${i}"} = $form->parse_amount(\%myconfig, $form->{"${_}_${i}"}) if ($form->{"${_}_${i}"}) } qw(ship qty sellprice listprice basefactor discount); } my %old_values = map { $_ => $form->{$_} } qw(customer_id oldcustomer customer vendor_id oldvendor vendor);