OE Templates: Workflowrelevante Flags fehlten
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 3 Nov 2009 12:15:31 +0000 (13:15 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 3 Nov 2009 12:15:31 +0000 (13:15 +0100)
bin/mozilla/oe.pl

index d844675..5965bf5 100644 (file)
@@ -490,6 +490,12 @@ sub form_footer {
      print_options   => print_options(inline => 1),
      label_edit      => $locale->text("Edit the $form->{type}"),
      label_workflow  => $locale->text("Workflow $form->{type}"),
+     is_sales        => scalar ($form->{type} =~ /^sales_/),              # these vars are exported, so that the template
+     is_order        => scalar ($form->{type} =~ /_order$/),              # may determine what to show
+     is_sales_quo    => scalar ($form->{type} =~ /sales_quotation$/),
+     is_req_quo      => scalar ($form->{type} =~ /request_quotation$/),
+     is_sales_ord    => scalar ($form->{type} =~ /sales_order$/),
+     is_pur_ord      => scalar ($form->{type} =~ /purchase_order$/),
   });
 
   $main::lxdebug->leave_sub();