From 4d09ad4b5544c933b35c4a58b97871efdceb601c Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 17 Dec 2009 09:38:06 +0100 Subject: [PATCH] Nur dann Auftragsdaten aus Datenbank holen, wenn Rechnung aus Auftrag angelegt wird. --- bin/mozilla/is.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index aa75ebe25..4a37b7ed9 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -157,7 +157,7 @@ sub invoice_links { } # Load data for a specific order and update form fields - my $order_data = OE->get_order_data_by_ordnumber(%$form); + my $order_data = OE->get_order_data_by_ordnumber(%$form) if $form->{ordnumber}; # Copy the fields we need to %form for my $key (qw(payment_id salesman_id orddate taxzone_id quonumber)) { -- 2.20.1