From 2521c1bb8ed716d5a22a18d75be9fe41dac9d72f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 15 Nov 2011 11:30:47 +0100 Subject: [PATCH] Beim Umwandeln von verkaufsauftrag zu Lieferantenauftrag Rabatte resetten. --- bin/mozilla/oe.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index c9ddfa5be..addf693c5 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1766,9 +1766,11 @@ sub poso { map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued customer vendor creditlimit creditremaining discount tradediscount oldinvtotal delivered ordnumber); # if purchase_order was generated from sales_order, use lastcost_$i as sellprice_$i + # also reset discounts if ( $form->{sales_order_to_purchase_order} ) { for my $i (1 .. $form->{rowcount}) { $form->{"sellprice_${i}"} = $form->format_amount(\%myconfig,$form->{"lastcost_${i}"}); + $form->{"discount_${i}"} = 0; }; }; -- 2.20.1