From: Sven Schöling Date: Tue, 15 Nov 2011 10:30:47 +0000 (+0100) Subject: Beim Umwandeln von verkaufsauftrag zu Lieferantenauftrag Rabatte resetten. X-Git-Tag: release-2.7.0beta1~181 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2521c1bb8ed716d5a22a18d75be9fe41dac9d72f;p=kivitendo-erp.git Beim Umwandeln von verkaufsauftrag zu Lieferantenauftrag Rabatte resetten. --- 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; }; };