Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision df005c49

Von Sven Schöling vor mehr als 15 Jahren hinzugefügt

  • ID df005c490a2d6a9b7e50ea44fc7557e39ce7d6ca
  • Vorgänger b60e2ebf
  • Nachfolger 48579303

Templatebasierte OE Suche übernommen.

Unterschiede anzeigen:

SL/OE.pm
83 83
    qq|WHERE (o.quotation = ?) |;
84 84
  push(@values, $quotation);
85 85

  
86
  my ($null, $department_id) = split /--/, $form->{department};
86
  my ($null, $split_department_id) = split /--/, $form->{department};
87
  my $department_id = $form->{department_id} || $split_department_id;
87 88
  if ($department_id) {
88 89
    $query .= qq| AND o.department_id = ?|;
89 90
    push(@values, $department_id);
bin/mozilla/oe.pl
507 507
    my $rows = scalar @{ $form->{item_list} };
508 508

  
509 509
    # hier ist das problem fuer bug 817 $form->{discount} wird nicht durchgeschliffen
510
    # ferner fallunterscheidung fuer verkauf oder einkauf s.a. bug 736	jb 04.05.2009 
511
    # select discount as vendor_discount from vendor || 
510
    # ferner fallunterscheidung fuer verkauf oder einkauf s.a. bug 736	jb 04.05.2009
511
    # select discount as vendor_discount from vendor ||
512 512
    # select discount as customer_discount from customer
513 513
    $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{"$form->{vc}_discount"} * 100);
514 514

  
......
588 588
  check_oe_access();
589 589

  
590 590
  if ($form->{type} eq 'purchase_order') {
591
    $form->{title} = $locale->text('Purchase Orders');
592
    $form->{vc}    = 'vendor';
593
    $ordlabel      = $locale->text('Order Number');
594
    $ordnumber     = 'ordnumber';
595
    $employee      = $locale->text('Employee');
596
  }
591
    $form->{vc}        = 'vendor';
592
    $form->{ordnrname} = 'ordnumber';
593
    $form->{title}     = $locale->text('Purchase Orders');
594
    $form->{ordlabel}  = $locale->text('Order Number');
595

  
596
  } elsif ($form->{type} eq 'request_quotation') {
597
    $form->{vc}        = 'vendor';
598
    $form->{ordnrname} = 'quonumber';
599
    $form->{title}     = $locale->text('Request for Quotations');
600
    $form->{ordlabel}  = $locale->text('RFQ Number');
601

  
602
  } elsif ($form->{type} eq 'sales_order') {
603
    $form->{vc}        = 'customer';
604
    $form->{ordnrname} = 'ordnumber';
605
    $form->{title}     = $locale->text('Sales Orders');
606
    $form->{ordlabel}  = $locale->text('Order Number');
607

  
608
  } elsif ($form->{type} eq 'sales_quotation') {
609
    $form->{vc}        = 'customer';
610
    $form->{ordnrname} = 'quonumber';
611
    $form->{title}     = $locale->text('Quotations');
612
    $form->{ordlabel}  = $locale->text('Quotation Number');
597 613

  
598
  if ($form->{type} eq 'request_quotation') {
599
    $form->{title} = $locale->text('Request for Quotations');
600
    $form->{vc}    = 'vendor';
601
    $ordlabel      = $locale->text('RFQ Number');
602
    $ordnumber     = 'quonumber';
603
    $employee      = $locale->text('Employee');
604
  }
605

  
606
  if ($form->{type} eq 'sales_order') {
607
    $form->{title} = $locale->text('Sales Orders');
608
    $form->{vc}    = 'customer';
609
    $ordlabel      = $locale->text('Order Number');
610
    $ordnumber     = 'ordnumber';
611
    $employee      = $locale->text('Employee');
612
  }
613

  
614
  if ($form->{type} eq 'sales_quotation') {
615
    $form->{title} = $locale->text('Quotations');
616
    $form->{vc}    = 'customer';
617
    $ordlabel      = $locale->text('Quotation Number');
618
    $ordnumber     = 'quonumber';
619
    $employee      = $locale->text('Employee');
620
  }
621

  
622
  # setup vendor / customer selection
623
  $form->all_vc(\%myconfig, $form->{vc},
624
                ($form->{vc} eq 'customer') ? "AR" : "AP");
625

  
626
  # departments
627
  if (@{ $form->{all_departments} }) {
628
    $form->{selectdepartment} = "<option>\n";
629

  
630
    map {
631
      $form->{selectdepartment} .=
632
        "<option>$_->{description}--$_->{id}</option>\n"
633
    } (@{ $form->{all_departments} });
634
  }
635

  
636
  $department = qq|
637
        <tr>
638
	  <th align=right nowrap>| . $locale->text('Department') . qq|</th>
639
	  <td colspan=3><select name=department>$form->{selectdepartment}</select></td>
640
	</tr>
641
| if $form->{selectdepartment};
642

  
643
  my $delivered;
644
  if (($form->{"type"} eq "sales_order") ||
645
      ($form->{"type"} eq "purchase_order")) {
646
    $delivered = qq|
647
        <tr>
648
          <td><input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
649
            <label for="notdelivered">|. $locale->text('Not delivered') . qq|</label></td>
650
          <td><input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
651
            <label for="delivered">| . $locale->text('Delivered') . qq|</label></td>
652
        </tr>
653
|;
654
  }
655

  
656
  # use JavaScript Calendar or not
657
  $form->{jsscript} = 1;
658
  $jsscript = "";
659

  
660
  $button1 = qq|
661
     <td><input name=transdatefrom id=transdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
662
     <input type=button name=transdatefrom id="trigger3" value=|
663
    . $locale->text('button') . qq|></td>
664
    |;
665
  $button2 = qq|
666
     <td><input name=transdateto id=transdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
667
     <input type=button name=transdateto name=transdateto id="trigger4" value=|
668
    . $locale->text('button') . qq|></td>
669
   |;
670
  $button3 = qq|
671
     <td><input name=reqdatefrom id=reqdatefrom size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
672
     <input type=button name=reqdatefrom id="trigger5" value=|
673
    . $locale->text('button') . qq|></td>
674
    |;
675
  $button4 = qq|
676
     <td><input name=reqdateto id=reqdateto size=11 title="$myconfig{dateformat}" onBlur=\"check_right_date_format(this)\">
677
     <input type=button name=reqdateto name=reqdateto id="trigger6" value=|
678
    . $locale->text('button') . qq|></td>
679
   |;
680
 
681
  #write Trigger
682
  $jsscript =
683
   Form->write_trigger(\%myconfig, "4", "transdatefrom", "BR", "trigger3",
684
                       "transdateto", "BL", "trigger4",
685
                       "reqdatefrom", "BR", "trigger5", "reqdateto", "BL", "trigger6");
686

  
687
  my $vc = $form->{vc} eq "customer" ? "customers" : "vendors";
688

  
689
  $form->get_lists("projects"  => { "key" => "ALL_PROJECTS",
690
                                    "all" => 1 },
691
                   "employees" => "ALL_EMPLOYEES",
692
                   "salesmen"  => "ALL_SALESMEN",
693
                   $vc         => "ALL_" . uc($vc)
694
                  );
695

  
696
  my %labels = ();
697
  my @values = ("");
698
  foreach my $item (@{ $form->{"ALL_PROJECTS"} }) {
699
    push(@values, $item->{"id"});
700
    $labels{$item->{"id"}} = $item->{"projectnumber"};
701
  }
702
  my $projectnumber =
703
    NTI($cgi->popup_menu('-name' => 'project_id', '-values' => \@values,
704
                         '-labels' => \%labels));
705

  
706
  #employees
707
  %labels = ();
708
  @values = ("");
709
  foreach my $item (@{ $form->{"ALL_EMPLOYEES"} }) {
710
    push(@values, $item->{"id"});
711
    $labels{$item->{"id"}} = $item->{"name"} ne "" ? $item->{"name"} : $item->{"login"};
712
  }
713

  
714
  #salesmen
715
  my %labels_salesmen = ();
716
  my @values_salesmen = ('');
717
  foreach my $item (@{ $form->{"ALL_SALESMEN"} }) {
718
    push(@values_salesmen, $item->{"id"});
719
    $labels_salesmen{$item->{"id"}} = $item->{"name"} ne "" ? $item->{"name"} : $item->{"login"};
720
  }
721

  
722
  my $employee_block = qq|
723
    <tr>
724
      <th align="right">| . $locale->text('Employee') . qq|</th>
725
      <td>| .  NTI($cgi->popup_menu('-name'   => 'employee_id', '-values' => \@values, '-labels' => \%labels)) . qq|</td>
726
    </tr>
727
    <tr>
728
      <th align="right">| . $locale->text('Salesman') . qq|</th>
729
      <td>| .
730
        NTI($cgi->popup_menu('-name'   => 'salesman_id',
731
                             '-values' => \@values_salesmen,
732
                             '-labels' => \%labels_salesmen)) . qq|
733
      </td>
734
    </tr>|;
735

  
736
  %labels = ();
737
  @values = ("");
738

  
739
  foreach my $item (@{ $form->{($form->{vc} eq "customer" ? "ALL_CUSTOMERS" : "ALL_VENDORS")}}) {
740
    push(@values, $item->{name}.qq|--|.$item->{"id"});
741
    $labels{$item->{name}.qq|--|.$item->{"id"}} = $item->{"name"};
614
  } else {
615
    $form->show_generic_error($locale->text('oe.pl::search called with unknown type'), back_button => 1);
742 616
  }
743 617

  
744
  my $vc_label = $form->{vc} eq "customer" ? $locale->text('Customer') : $locale->text('Vendor');
745
  $vc =
746
    $myconfig{vclimit} <=  scalar(@values)
747
    ? qq|<input type="text" value="| . H(($form->{"old$form->{vc}"} =~ /^(.*)\-\-.*$/)) . qq|" name="$form->{vc}">|
748
    : NTI($cgi->popup_menu('-name' => "$form->{vc}",
749
                           '-default' => $form->{"old$form->{vc}"},
750
                           '-onChange' => 'document.getElementById(\'update_button\').click();',
751
                           '-values' => \@values,
752
                           '-labels' => \%labels));
753
  $form->header;
754

  
755
  print qq|
756
<body>
757

  
758
<form method=post action=$form->{script}>
759

  
760
<table width=100%>
761
  <tr>
762
    <th class=listtop>$form->{title}</th>
763
  </tr>
764
  <tr height="5"></tr>
765
  <tr>
766
    <td>
767
      <table>
768
        <tr>
769
          <th align=right>$vc_label</th>
770
          <td colspan=3>$vc</td>
771
        </tr>
772
$department
773
        <tr>
774
          <th align=right>$ordlabel</th>
775
          <td colspan=3><input name="$ordnumber" size=20></td>
776
        </tr>
777
$employee_block
778
        <tr>
779
          <th align="right">| . $locale->text('Transaction description') . qq|</th>
780
          <td colspan="3"><input name="transaction_description" size=20></td>
781
        </tr>
782
        <tr>
783
          <th align="right">| . $locale->text("Project Number") . qq|</th>
784
          <td colspan="3">$projectnumber</td>
785
        </tr>
786
        <tr>
787
          <th align=right>| . $locale->text('Order Date') . " " . $locale->text('From') . qq|</th> $button1
788
          <th align=right>| . $locale->text('Bis') . qq|</th> $button2
789
        </tr>
790
        <input type=hidden name=sort value=transdate>
791
        <tr>
792
          <th align=right>| . $locale->text('Delivery Date') . " " . $locale->text('From') . qq|</th> $button3
793
          <th align=right>| . $locale->text('Bis') . qq|</th> $button4
794
        </tr>
795
        <input type=hidden name=sort value=reqdate>
796
        <tr>
797
          <th align=right>| . $locale->text('Include in Report') . qq|</th>
798
          <td colspan=5>
799
	    <table>
800
        <tr>
801
          <td><input type="checkbox" name="open" value="1" id="open" checked> <label for="open">| . $locale->text("Open") . qq|</td>
802
          <td><input type="checkbox" name="closed" value="1" id="closed"> <label for="closed">| . $locale->text("Closed") . qq|</td>
803
        </tr>
804
        $delivered
805
	      <tr>
806
		<td><input name="l_id" class=checkbox type=checkbox value=Y> | . $locale->text('ID') . qq|</td>
807
		<td><input name="l_$ordnumber" class=checkbox type=checkbox value=Y checked> $ordlabel</td>
808
	      </tr>
809
	      <tr>
810
		<td><input name="l_transdate" class=checkbox type=checkbox value=Y checked> | . $locale->text('Date') . qq|</td>
811
		<td><input name="l_reqdate" class=checkbox type=checkbox value=Y checked> | . $locale->text('Required by') . qq|</td>
812
	      </tr>
813
	      <tr>
814
	        <td><input name="l_name" class=checkbox type=checkbox value=Y checked> $vc_label</td>
815
	        <td><input name="l_employee" class=checkbox type=checkbox value=Y checked> $employee</td>
816

  
817
		<td><input name="l_shipvia" class=checkbox type=checkbox value=Y> | . $locale->text('Ship via') . qq|</td>
818
	      </tr>
819
	      <tr>
820
		<td><input name="l_netamount" class=checkbox type=checkbox value=Y> | . $locale->text('Amount') . qq|</td>
821
		<td><input name="l_tax" class=checkbox type=checkbox value=Y> | . $locale->text('Tax') . qq|</td>
822
		<td><input name="l_amount" class=checkbox type=checkbox value=Y checked> | . $locale->text('Total') . qq|</td>
823
	      </tr>
824
	      <tr>
825
		<td><input name="l_marge_total" class=checkbox type=checkbox value=Y> | .             $locale->text('Ertrag') . qq|</td>
826
		<td><input name="l_marge_percent" class=checkbox type=checkbox value=Y> | .             $locale->text('Ertrag prozentual') . qq|</td>
827
	      </tr>
828
	      <tr>
829
          <td><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y> | . $locale->text('Project Number') . qq|</td>
830
          <td><input name="l_transaction_description" class=checkbox type=checkbox value=Y> | . $locale->text('Transaction description') . qq|</td>
831
	      </tr>
832
	      <tr>
833
	        <td><input name="l_subtotal" class=checkbox type=checkbox value=Y> | . $locale->text('Subtotal') . qq|</td>
834
                <td><input name="l_salesman" class="checkbox" type="checkbox" value="Y"> | . $locale->text('Salesman') . qq|</td>
835
	      </tr>
836
	    </table>
837
          </td>
838
        </tr>
839
      </table>
840
    </td>
841
  </tr>
842
  <tr><td colspan=4><hr size=3 noshade></td></tr>
843
</table>
844

  
845
$jsscript
846

  
847
<br>
848
<input type=hidden name=nextsub value=orders>
849
<input type=hidden name=vc value=$form->{vc}>
850
<input type=hidden name=type value=$form->{type}>
618
  # setup vendor / customer data
619
  $form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP");
620
  $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
621
                   "employees"    => "ALL_EMPLOYEES",
622
                   "salesmen"     => "ALL_SALESMEN",
623
                   "departments"  => "ALL_DEPARTMENTS",
624
                   "$form->{vc}s" => "ALL_VC");
625

  
626
  # constants and subs for template
627
  $form->{jsscript}        = 1;
628
  $form->{employee_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} };
629
  $form->{vc_keys}         = sub { "$_[0]->{name}--$_[0]->{id}" };
630
  $form->{salesman_labels} = $form->{employee_labels};
851 631

  
852
<input class=submit type=submit name=action value="|
853
    . $locale->text('Continue') . qq|">
854
</form>
632
  $form->header();
855 633

  
856
</body>
857
</html>
858
|;
634
  print $form->parse_html_template('oe/search');
859 635

  
860 636
  $lxdebug->leave_sub();
861 637
}
locale/de/all
1835 1835
  'not transferred in yet'      => 'noch nicht eingelagert',
1836 1836
  'not transferred out yet'     => 'noch nicht ausgelagert',
1837 1837
  'number'                      => 'Nummer',
1838
  'oe.pl::search called with unknown type' => 'oe.pl::search mit unbekanntem Typ aufgerufen',
1838 1839
  'order'                       => 'Reihenfolge',
1839 1840
  'our vendor number at customer' => 'unsere Lieferanten-Nr. beim Kunden',
1840 1841
  'packing_list'                => 'Versandliste',
locale/de/login
168 168
  'History'                     => 'Historie',
169 169
  'ID'                          => 'Buchungsnummer',
170 170
  'In-line'                     => 'im Text',
171
  'Include in Report'           => 'In Bericht aufnehmen',
172 171
  'Incorrect Password!'         => 'Ung?ltiges Passwort!',
173 172
  'Incorrect username or password!' => 'Ung?ltiger Benutzername oder falsches Passwort!',
174 173
  'Invalid follow-up ID.'       => 'Ung&uuml;ltige Wiedervorlage-ID.',
......
369 368
  'Zipcode'                     => 'PLZ',
370 369
  '[email]'                     => '[email]',
371 370
  'bin_list'                    => 'Lagerliste',
372
  'button'                      => '?',
373 371
  'chargenumber #1'             => 'Chargennummer #1',
374 372
  'config/authentication.pl: Key "DB_config" is missing.' => 'config/authentication.pl: Das Schl&uuml;sselwort "DB_config" fehlt.',
375 373
  'config/authentication.pl: Key "LDAP_config" is missing.' => 'config/authentication.pl: Der Schl&uuml;ssel "LDAP_config" fehlt.',
......
382 380
  'no'                          => 'nein',
383 381
  'no chargenumber'             => 'keine Chargennummer',
384 382
  'none (pricegroup)'           => 'keine',
383
  'oe.pl::search called with unknown type' => 'oe.pl::search mit unbekanntem Typ aufgerufen',
385 384
  'packing_list'                => 'Versandliste',
386 385
  'pick_list'                   => 'Entnahmeliste',
387 386
  'proforma'                    => 'Proforma',
locale/de/oe
153 153
  'History'                     => 'Historie',
154 154
  'ID'                          => 'Buchungsnummer',
155 155
  'In-line'                     => 'im Text',
156
  'Include in Report'           => 'In Bericht aufnehmen',
157 156
  'Invoice'                     => 'Rechnung',
158 157
  'Invoice Date missing!'       => 'Rechnungsdatum fehlt!',
159 158
  'Invoice Number missing!'     => 'Rechnungsnummer fehlt!',
......
338 337
  'Zipcode'                     => 'PLZ',
339 338
  '[email]'                     => '[email]',
340 339
  'bin_list'                    => 'Lagerliste',
341
  'button'                      => '?',
342 340
  'chargenumber #1'             => 'Chargennummer #1',
343 341
  'config/authentication.pl: Key "DB_config" is missing.' => 'config/authentication.pl: Das Schl&uuml;sselwort "DB_config" fehlt.',
344 342
  'config/authentication.pl: Key "LDAP_config" is missing.' => 'config/authentication.pl: Der Schl&uuml;ssel "LDAP_config" fehlt.',
......
350 348
  'no'                          => 'nein',
351 349
  'no chargenumber'             => 'keine Chargennummer',
352 350
  'none (pricegroup)'           => 'keine',
351
  'oe.pl::search called with unknown type' => 'oe.pl::search mit unbekanntem Typ aufgerufen',
353 352
  'packing_list'                => 'Versandliste',
354 353
  'pick_list'                   => 'Entnahmeliste',
355 354
  'proforma'                    => 'Proforma',
locale/de/todo
167 167
  'History'                     => 'Historie',
168 168
  'ID'                          => 'Buchungsnummer',
169 169
  'In-line'                     => 'im Text',
170
  'Include in Report'           => 'In Bericht aufnehmen',
171 170
  'Invalid follow-up ID.'       => 'Ung&uuml;ltige Wiedervorlage-ID.',
172 171
  'Invoice'                     => 'Rechnung',
173 172
  'Invoice Date missing!'       => 'Rechnungsdatum fehlt!',
......
362 361
  'Zipcode'                     => 'PLZ',
363 362
  '[email]'                     => '[email]',
364 363
  'bin_list'                    => 'Lagerliste',
365
  'button'                      => '?',
366 364
  'chargenumber #1'             => 'Chargennummer #1',
367 365
  'config/authentication.pl: Key "DB_config" is missing.' => 'config/authentication.pl: Das Schl&uuml;sselwort "DB_config" fehlt.',
368 366
  'config/authentication.pl: Key "LDAP_config" is missing.' => 'config/authentication.pl: Der Schl&uuml;ssel "LDAP_config" fehlt.',
......
375 373
  'no'                          => 'nein',
376 374
  'no chargenumber'             => 'keine Chargennummer',
377 375
  'none (pricegroup)'           => 'keine',
376
  'oe.pl::search called with unknown type' => 'oe.pl::search mit unbekanntem Typ aufgerufen',
378 377
  'packing_list'                => 'Versandliste',
379 378
  'pick_list'                   => 'Entnahmeliste',
380 379
  'proforma'                    => 'Proforma',
templates/webpages/oe/search_de.html
1
[%- USE HTML %]
2
[%- SET vclabel = vc == 'customer' ? 'Kunde' : 'Lieferant' %]
3
<body>
4

  
5
<form method="post" action="oe.pl">
6

  
7
 <p><div class="listtop">[% HTML.escape(title) %]</div></p>
8

  
9
<table width="100%">
10
 <tr>
11
  <td>
12
   <table>
13
    <tr>
14
     <th align="right">[% HTML.escape(vclabel) %]</th>
15
     <td colspan="3">
16
            [%- INCLUDE 'generic/multibox.html'
17
                 name          = vc,
18
                 default       = vc == 'customer' ? oldcustomer : oldvendor,
19
                 style         = 'width: 250px',
20
                 DATA          = ALL_VC,
21
                 id_sub        = 'vc_keys',
22
                 label_key     = 'name',
23
                 select        = vc_select,
24
                 limit         = vclimit,
25
                 show_empty    = 1,
26
                 allow_textbox = 1,
27
                 -%]
28
     </td>
29
    </tr>
30
[%- IF ALL_DEPARTMENTS.size %]
31
    <tr>
32
     <th align="right" nowrap>Abteilung</th>
33
     <td colspan="3">
34
            [%- INCLUDE 'generic/multibox.html'
35
                 name          = 'department_id',
36
                 style         = 'width: 250px',
37
                 DATA          = ALL_DEPARTMENTS,
38
                 id_key        = 'id',
39
                 label_key     = 'description',
40
                 limit         = vclimit,
41
                 show_empty    = 1,
42
                 allow_textbox = 1,
43
            -%]
44
     </td>
45
    </tr>
46
[%- END %]
47
    <tr>
48
     <th align="right">[% HTML.escape(ordlabel) %]</th>
49
     <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
50
    </tr>
51
    <tr>
52
     <th align="right">Bearbeiter</th>
53
     <td>
54
            [%- INCLUDE 'generic/multibox.html'
55
                 name          = 'employee_id',
56
                 style         = 'width: 250px',
57
                 DATA          =  ALL_EMPLOYEES,
58
                 id_key        = 'id',
59
                 label_sub     = 'employee_labels',
60
                 limit         = vclimit,
61
                 show_empty    = 1,
62
                 allow_textbox = 1,
63
                 default       = ' ',
64
            -%]
65
     </td>
66
    </tr>
67
    <tr>
68
     <th align="right">Verk?ufer/in</th>
69
     <td>
70
            [%- INCLUDE 'generic/multibox.html'
71
                 name          = 'salesman_id',
72
                 style         = 'width: 250px',
73
                 DATA          =  ALL_SALESMEN,
74
                 id_key        = 'id',
75
                 label_sub     = 'salesman_labels',
76
                 limit         = vclimit,
77
                 show_empty    = 1,
78
                 allow_textbox = 1,
79
            -%]
80
     </td>
81
    </tr>
82
    <tr>
83
     <th align="right">Vorgangsbezeichnung</th>
84
     <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
85
    </tr>
86
    <tr>
87
     <th align="right">Projektnummer</th>
88
     <td colspan="3">
89
            [%- INCLUDE 'generic/multibox.html'
90
                 name          = 'project_id',
91
                 style         = "width: 250px",
92
                 DATA          =  ALL_PROJECTS,
93
                 id_key        = 'id',
94
                 label_key     = 'projectnumber',
95
                 limit         = vclimit,
96
                 show_empty    = 1,
97
                 allow_textbox = 1,
98
            -%]
99
     </td>
100
    </tr>
101
    <tr>
102
     <th align="right">Von</th>
103
     <td>
104
      <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
105
      <input type="button" name="transdatefrom" id="trigger3" value="?">
106
     </td>
107
     <th align="right">bis</th>
108
     <td>
109
      <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
110
      <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
111
     </td>
112
    </tr>
113
    <tr>
114
     <th align="right">In Bericht aufnehmen</th>
115
     <td colspan="5">
116
      <table>
117
       <tr>
118
        <td>
119
         <input type="checkbox" name="open" value="1" id="open" checked>
120
         <label for="open">Offen</label>
121
        </td>
122
        <td>
123
         <input type="checkbox" name="closed" value="1" id="closed">
124
         <label for="closed">Geschlossen</label>
125
        </td>
126
       </tr>
127
[%- IF type == 'sales_order' OR type == 'purchase_order' %]
128
       <tr>
129
        <td>
130
         <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
131
         <label for="notdelivered">Nicht geliefert</label>
132
        </td>
133
        <td>
134
         <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
135
         <label for="delivered">Geliefert</label>
136
        </td>
137
       </tr>
138
[%- END %]
139
       <tr>
140
        <td>
141
         <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
142
         <label for="l_id">Buchungsnummer</label>
143
        </td>
144
        <td>
145
         <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
146
         <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
147
        </td>
148
       </tr>
149
       <tr>
150
        <td>
151
         <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
152
         <label for="l_transdate">Datum</label>
153
        </td>
154
        <td>
155
         <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
156
         <label for="l_reqdate">Lieferdatum</label>
157
        </td>
158
       </tr>
159
       <tr>
160
        <td>
161
         <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
162
         <label for="l_name">[% HTML.escape(vclabel) %]
163
        </td>
164
        <td>
165
         <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
166
         <label for="l_employee">Bearbeiter</label>
167
        </td>
168
        <td>
169
         <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
170
         <label for="l_shipvia">Transportmittel</label>
171
        </td>
172
       </tr>
173
       <tr>
174
        <td>
175
         <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
176
         <label for="l_netamount">Betrag</label>
177
        </td>
178
        <td>
179
         <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
180
         <label for="l_tax">Steuer</label>
181
        </td>
182
        <td>
183
         <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
184
         <label for="l_amount">Summe</label>
185
        </td>
186
       </tr>
187
       <tr>
188
        <td>
189
         <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
190
         <label for="l_marge_total">Ertrag</label>
191
        </td>
192
        <td>
193
         <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
194
         <label for="l_marge_percent">Ertrag prozentual</label>
195
        </td>
196
       </tr>
197
       <tr>
198
        <td>
199
         <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
200
         <label for="l_globalprojectnumber">Projektnummer</label>
201
        </td>
202
        <td>
203
         <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
204
         <label for="l_transaction_description">Vorgangsbezeichnung</label>
205
        </td>
206
       </tr>
207
       <tr>
208
        <td>
209
         <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
210
         <label for="l_subtotal">Zwischensumme</label>
211
        </td>
212
        <td>
213
         <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
214
         <label for="l_salesman">Verk?ufer/in</label>
215
        </td>
216
       </tr>
217
[%- IF type == 'sales_order' %]
218
       <tr><td colspan="3"><hr></td></tr>
219
[%- END %]
220
      </table>
221
     </td>
222
    </tr>
223
   </table>
224
  </td>
225
 </tr>
226
</table>
227

  
228
<script type="text/javascript">
229
 <!--
230
   Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
231
   Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
232
 //-->
233
</script>
234

  
235
<br>
236
<input type="hidden" name="nextsub" value="orders">
237
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
238
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
239
<input class="submit" type="submit" name="action" value="Weiter">
240
</form>
241

  
242
</body>
243
</html>
templates/webpages/oe/search_master.html
1
[%- USE HTML %]
2
[%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
3
<body>
4

  
5
<form method="post" action="oe.pl">
6

  
7
 <p><div class="listtop">[% HTML.escape(title) %]</div></p>
8

  
9
<table width="100%">
10
 <tr>
11
  <td>
12
   <table>
13
    <tr>
14
     <th align="right">[% HTML.escape(vclabel) %]</th>
15
     <td colspan="3">
16
            [%- INCLUDE 'generic/multibox.html'
17
                 name          = vc,
18
                 default       = vc == 'customer' ? oldcustomer : oldvendor,
19
                 style         = 'width: 250px',
20
                 DATA          = ALL_VC,
21
                 id_sub        = 'vc_keys',
22
                 label_key     = 'name',
23
                 select        = vc_select,
24
                 limit         = vclimit,
25
                 show_empty    = 1,
26
                 allow_textbox = 1,
27
                 -%]
28
     </td>
29
    </tr>
30
[%- IF ALL_DEPARTMENTS.size %]
31
    <tr>
32
     <th align="right" nowrap><translate>Department</translate></th>
33
     <td colspan="3">
34
            [%- INCLUDE 'generic/multibox.html'
35
                 name          = 'department_id',
36
                 style         = 'width: 250px',
37
                 DATA          = ALL_DEPARTMENTS,
38
                 id_key        = 'id',
39
                 label_key     = 'description',
40
                 limit         = vclimit,
41
                 show_empty    = 1,
42
                 allow_textbox = 1,
43
            -%]
44
     </td>
45
    </tr>
46
[%- END %]
47
    <tr>
48
     <th align="right">[% HTML.escape(ordlabel) %]</th>
49
     <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
50
    </tr>
51
    <tr>
52
     <th align="right"><translate>Employee</translate></th>
53
     <td>
54
            [%- INCLUDE 'generic/multibox.html'
55
                 name          = 'employee_id',
56
                 style         = 'width: 250px',
57
                 DATA          =  ALL_EMPLOYEES,
58
                 id_key        = 'id',
59
                 label_sub     = 'employee_labels',
60
                 limit         = vclimit,
61
                 show_empty    = 1,
62
                 allow_textbox = 1,
63
                 default       = ' ',
64
            -%]
65
     </td>
66
    </tr>
67
    <tr>
68
     <th align="right"><translate>Salesman</translate></th>
69
     <td>
70
            [%- INCLUDE 'generic/multibox.html'
71
                 name          = 'salesman_id',
72
                 style         = 'width: 250px',
73
                 DATA          =  ALL_SALESMEN,
74
                 id_key        = 'id',
75
                 label_sub     = 'salesman_labels',
76
                 limit         = vclimit,
77
                 show_empty    = 1,
78
                 allow_textbox = 1,
79
            -%]
80
     </td>
81
    </tr>
82
    <tr>
83
     <th align="right"><translate>Transaction description</translate></th>
84
     <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
85
    </tr>
86
    <tr>
87
     <th align="right"><translate>Project Number</translate></th>
88
     <td colspan="3">
89
            [%- INCLUDE 'generic/multibox.html'
90
                 name          = 'project_id',
91
                 style         = "width: 250px",
92
                 DATA          =  ALL_PROJECTS,
93
                 id_key        = 'id',
94
                 label_key     = 'projectnumber',
95
                 limit         = vclimit,
96
                 show_empty    = 1,
97
                 allow_textbox = 1,
98
            -%]
99
     </td>
100
    </tr>
101
    <tr>
102
     <th align="right"><translate>From</translate></th>
103
     <td>
104
      <input name="transdatefrom" id="transdatefrom" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
105
      <input type="button" name="transdatefrom" id="trigger3" value="?">
106
     </td>
107
     <th align="right"><translate>Bis</translate></th>
108
     <td>
109
      <input name="transdateto" id="transdateto" size="11" title="[% HTML.escape(dateformat) %]" onBlur="check_right_date_format(this)">
110
      <input type="button" name="transdateto" name="transdateto" id="trigger4" value="?">
111
     </td>
112
    </tr>
113
    <tr>
114
     <th align="right"><translate>Include in Report</translate></th>
115
     <td colspan="5">
116
      <table>
117
       <tr>
118
        <td>
119
         <input type="checkbox" name="open" value="1" id="open" checked>
120
         <label for="open"><translate>Open</translate></label>
121
        </td>
122
        <td>
123
         <input type="checkbox" name="closed" value="1" id="closed">
124
         <label for="closed"><translate>Closed</translate></label>
125
        </td>
126
       </tr>
127
[%- IF type == 'sales_order' OR type == 'purchase_order' %]
128
       <tr>
129
        <td>
130
         <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
131
         <label for="notdelivered"><translate>Not delivered</translate></label>
132
        </td>
133
        <td>
134
         <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
135
         <label for="delivered"><translate>Delivered</translate></label>
136
        </td>
137
       </tr>
138
[%- END %]
139
       <tr>
140
        <td>
141
         <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
142
         <label for="l_id"><translate>ID</translate></label>
143
        </td>
144
        <td>
145
         <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
146
         <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
147
        </td>
148
       </tr>
149
       <tr>
150
        <td>
151
         <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
152
         <label for="l_transdate"><translate>Date</translate></label>
153
        </td>
154
        <td>
155
         <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
156
         <label for="l_reqdate"><translate>Required by</translate></label>
157
        </td>
158
       </tr>
159
       <tr>
160
        <td>
161
         <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
162
         <label for="l_name">[% HTML.escape(vclabel) %]
163
        </td>
164
        <td>
165
         <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
166
         <label for="l_employee"><translate>Employee</translate></label>
167
        </td>
168
        <td>
169
         <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
170
         <label for="l_shipvia"><translate>Ship via</translate></label>
171
        </td>
172
       </tr>
173
       <tr>
174
        <td>
175
         <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
176
         <label for="l_netamount"><translate>Amount</translate></label>
177
        </td>
178
        <td>
179
         <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
180
         <label for="l_tax"><translate>Tax</translate></label>
181
        </td>
182
        <td>
183
         <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
184
         <label for="l_amount"><translate>Total</translate></label>
185
        </td>
186
       </tr>
187
       <tr>
188
        <td>
189
         <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
190
         <label for="l_marge_total"><translate>Ertrag</translate></label>
191
        </td>
192
        <td>
193
         <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
194
         <label for="l_marge_percent"><translate>Ertrag prozentual</translate></label>
195
        </td>
196
       </tr>
197
       <tr>
198
        <td>
199
         <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
200
         <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
201
        </td>
202
        <td>
203
         <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
204
         <label for="l_transaction_description"><translate>Transaction description</translate></label>
205
        </td>
206
       </tr>
207
       <tr>
208
        <td>
209
         <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
210
         <label for="l_subtotal"><translate>Subtotal</translate></label>
211
        </td>
212
        <td>
213
         <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
214
         <label for="l_salesman"><translate>Salesman</translate></label>
215
        </td>
216
       </tr>
217
[%- IF type == 'sales_order' %]
218
       <tr><td colspan="3"><hr></td></tr>
219
[%- END %]
220
      </table>
221
     </td>
222
    </tr>
223
   </table>
224
  </td>
225
 </tr>
226
</table>
227

  
228
<script type="text/javascript">
229
 <!--
230
   Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
231
   Calendar.setup({ inputField : "transdateto",   ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger4" });
232
 //-->
233
</script>
234

  
235
<br>
236
<input type="hidden" name="nextsub" value="orders">
237
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
238
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
239
<input class="submit" type="submit" name="action" value="<translate>Continue</translate>">
240
</form>
241

  
242
</body>
243
</html>

Auch abrufbar als: Unified diff