From c5b0750518740054929b551285747bf9524b6803 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 28 Oct 2015 15:57:45 +0100 Subject: [PATCH] =?utf8?q?Lieferschein:=20=C3=9Cbernahme=20einiger=20Felde?= =?utf8?q?r=20aus=20Auftrag=20gefixt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Betroffen waren das Auftragsdatum, Angebotsnummer, BearbeiterIn, Steuerzone. Ist in 464f44a kaputt gegangen. --- bin/mozilla/do.pl | 9 +++++++++ templates/webpages/do/form_header.html | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index cf210ce51..21384f4ba 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -841,6 +841,15 @@ sub invoice { my $currency = $form->{currency}; invoice_links(); + if ($form->{ordnumber}) { + require SL::DB::Order; + if (my $order = SL::DB::Manager::Order->find_by(ordnumber => $form->{ordnumber})) { + $order->load; + $form->{orddate} = $order->transdate_as_date; + $form->{$_} = $order->$_ for qw(payment_id salesman_id taxzone_id quonumber); + } + } + $form->{currency} = $currency; $form->{exchangerate} = ""; $form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, $buysell); diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html index 1fe72248d..52b0e7033 100644 --- a/templates/webpages/do/form_header.html +++ b/templates/webpages/do/form_header.html @@ -84,7 +84,6 @@ - -- 2.20.1