X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fd8558c8cfd92d3399401a7ca27cbb0faf2a021d..b3721e4e65d62ea30b68b00ac77b4495b1f17337:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 4e16ed5f1..093e77033 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -633,6 +633,10 @@ sub retrieve { ($form->{currency}) = split /:/, $form->{currencies}; + # set reqdate if this is an invoice->order conversion. If someone knows a better check to ensure + # we come from invoices, feel free. + $form->{reqdate} = $form->{deliverydate} if ($form->{deliverydate} and $form->{callback} =~ /action=ar_transactions/); + if ($form->{id} or @ids) { # retrieve order for single id @@ -919,6 +923,7 @@ sub order_details { $linetotal = ($linetotal != 0) ? $linetotal : " "; push(@{ $form->{discount} }, $discount); + push(@{ $form->{p_discount} }, $form->{"discount_$i"}); $form->{ordtotal} += $linetotal;