From 1dbba310dfffc4caa2a786893134fb3dbebd3e28 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 20 Jan 2017 17:52:10 +0100 Subject: [PATCH] =?utf8?q?Einkaufsrechnungen:=20Lieferantenwahl=20=C3=BCbe?= =?utf8?q?r=20Picker=20und=20nicht=20Multibox?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/ir.pl | 44 +++++--------------------- templates/webpages/ir/form_header.html | 23 +++----------- 2 files changed, 12 insertions(+), 55 deletions(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 71d7d7369..16eb69eca 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -38,6 +38,7 @@ use SL::IS; use SL::DB::Default; use SL::DB::Department; use SL::DB::PurchaseInvoice; +use SL::DB::Vendor; use List::Util qw(max sum); use List::UtilsBy qw(sort_by); @@ -110,17 +111,6 @@ sub invoice_links { # create links $form->create_links("AP", \%myconfig, "vendor"); - #quote all_vendor Bug 133 - foreach my $ref (@{ $form->{all_vendor} }) { - $ref->{name} = $form->quote($ref->{name}); - } - - if ($form->{all_vendor}) { - unless ($form->{vendor_id}) { - $form->{vendor_id} = $form->{all_vendor}->[0]->{id}; - } - } - $form->backup_vars(qw(payment_id language_id taxzone_id currency delivery_term_id intnotes cp_id)); @@ -133,14 +123,6 @@ sub invoice_links { my @curr = $form->get_all_currencies(); map { $form->{selectcurrency} .= "