Analog zu Commit fce441db auch die Einkaufsrechnungen fixen.
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 8 Dec 2009 12:10:39 +0000 (13:10 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 8 Dec 2009 12:10:39 +0000 (13:10 +0100)
bin/mozilla/ir.pl

index bbf8340..f43ed77 100644 (file)
@@ -145,6 +145,12 @@ sub invoice_links {
 
   $form->{oldvendor} = "$form->{vendor}--$form->{vendor_id}";
 
+  # build vendor/customer drop down comatibility... don't ask
+  if (@{ $form->{"all_vendor"} || [] }) {
+    $form->{"selectvendor"} = 1;
+    $form->{vendor}         = qq|$form->{vendor}--$form->{vendor_id}|;
+  }
+
   # departments
   if ($form->{all_departments}) {
     $form->{selectdepartment} = "<option>\n";