From: Moritz Bunkus Date: Fri, 20 Jan 2017 16:34:01 +0000 (+0100) Subject: Einkaufsrechnungen: Abteilungs- & Projektauswahl nicht über Multibox X-Git-Tag: release-3.5.4~1667^2~21 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=da413cb1223e7cb62fdffee70bdd2845d9b30d66;p=kivitendo-erp.git Einkaufsrechnungen: Abteilungs- & Projektauswahl nicht über Multibox --- diff --git a/SL/IS.pm b/SL/IS.pm index 6d1e843cd..6018634dd 100644 --- a/SL/IS.pm +++ b/SL/IS.pm @@ -1339,9 +1339,6 @@ SQL # need the current dbh to get the not yet committed mtime $form->new_lastmtime('ar', $provided_dbh); - $form->{name} = $form->{customer}; - $form->{name} =~ s/--\Q$form->{customer_id}\E//; - # add shipto if (!$form->{shipto_id}) { $form->add_shipto($dbh, $form->{id}, "AR"); diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 593d290ab..71d7d7369 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -36,6 +36,7 @@ use SL::FU; use SL::IR; use SL::IS; use SL::DB::Default; +use SL::DB::Department; use SL::DB::PurchaseInvoice; use List::Util qw(max sum); use List::UtilsBy qw(sort_by); @@ -140,17 +141,6 @@ sub invoice_links { $form->{vendor} = qq|$form->{vendor}--$form->{vendor_id}|; } - # departments - if ($form->{all_departments}) { - $form->{selectdepartment} = "