Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0931ca33

Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt

  • ID 0931ca330e898b1dd81fc68835f2bf2fa65b57e4
  • Vorgänger 81d847d9
  • Nachfolger 9f3acf01

Neues kivitendo Design Aenderungen in templates/webpages/m*

Dateien mass_delivery_order_print/* mass_invoice_create_print_from_do/*
menu/*

Unterschiede anzeigen:

templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
1
[% USE HTML %][% USE L %][% USE LxERP %]
1
[% USE HTML %]
2
[% USE L %]
3
[% USE LxERP %]
2 4

  
3 5
<h1>[% FORM.title %]</h1>
4 6

  
5
[%- INCLUDE "common/flash.html" %]
7
[% INCLUDE "common/flash.html" %]
6 8

  
7 9
[% LIST_ACTION     = 'list_invoices' %]
8
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
10
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.invoice_models.filtered.laundered %]
9 11

  
10 12
[% IF noshow == 1 %]
11
[% invoices = SELF.invoice_models.get;
12
   MODELS          = SELF.invoice_models %]
13
[%- IF !invoices.size %]
14
 <p>
15
  [%- LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]
16
 </p>
17
[%- ELSE %]
13
  [% invoices = SELF.invoice_models.get;
14
     MODELS          = SELF.invoice_models %]
15
  [% IF !invoices.size %]
16
    <p>[% LxERP.t8("There are currently no open invoices, or none matches your filter conditions.") %]</p>
17
  [% ELSE %]
18 18

  
19
 <form method="post" action="controller.pl" id="report_form">
20
  <table width="100%">
21
   <thead>
22
    <tr class="listheading">
23
     <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
24
     <th>[% L.sortable_table_header("transdate") %]</th>
25
     <th>[% L.sortable_table_header("reqdate") %]</th>
26
     <th>[% L.sortable_table_header("invnumber") %]</th>
27
     <th>[% L.sortable_table_header("donumber") %]</th>
28
     <th>[% L.sortable_table_header("customer") %]</th>
29
     <th>[% LxERP.t8("Shipto") %]</th>
30
    </tr>
31
   </thead>
19
    <form method="post" action="controller.pl" id="report_form">
20
      <table class="tbl-list">
21
        <thead>
22
          <tr>
23
            <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
24
            <th>[% L.sortable_table_header("transdate") %]</th>
25
            <th>[% L.sortable_table_header("reqdate") %]</th>
26
            <th>[% L.sortable_table_header("invnumber") %]</th>
27
            <th>[% L.sortable_table_header("donumber") %]</th>
28
            <th>[% L.sortable_table_header("customer") %]</th>
29
            <th>[% LxERP.t8("Shipto") %]</th>
30
          </tr>
31
        </thead>
32
        <tbody>
33
          [% FOREACH invoice = invoices %]
34
            [% invoice_id = invoice.id
35
               delivery_order    = invoice.delivery_order
36
            %]
37
            <tr>
38
              <td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
39
              <td>[% HTML.escape(invoice.transdate_as_date) %]</td>
40
              <td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
41
              <td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
42
              <td>
43
                [% IF delivery_order %]
44
                  [% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
45
                [% ELSE %]
46
                  [% HTML.escape(invoice.donumber) %]
47
                [% END %]
48
              </td>
49
              <td>[% HTML.escape(invoice.customer.name) %]</td>
50
              <td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
51
            </tr>
52
         [% END %]
53
        </tbody>
54
      </table>
55
      [% IF !SELF.invoice_ids.size %]
56
        [% L.paginate_controls %]
57
      [% END %]
58
      [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
59
      [% L.hidden_tag("printer_id") %]
60
    </form>
32 61

  
33
   <tbody>
34
    [%- FOREACH invoice = invoices %]
35
     [% invoice_id = invoice.id
36
        delivery_order    = invoice.delivery_order %]
37
     <tr class="listrow">
38
      <td>[% L.checkbox_tag('id[]', value=invoice.id, "data-checkall"=1, checked=selected_ids.$invoice_id) %]</td>
39
      <td>[% HTML.escape(invoice.transdate_as_date) %]</td>
40
      <td>[% HTML.escape(invoice.deliverydate_as_date) %]</td>
41
      <td>[% L.link(SELF.url_for(controller="is.pl", action="edit", type="sales_invoice", id=invoice.id), invoice.invnumber) %]</td>
42
      <td>
43
       [% IF delivery_order %]
44
        [% L.link(SELF.url_for(controller="do.pl", action="edit", id=delivery_order.id), delivery_order.donumber) %]
45
       [% ELSE %]
46
        [% HTML.escape(invoice.donumber) %]
47
       [% END %]
48
      </td>
49
      <td>[% HTML.escape(invoice.customer.name) %]</td>
50
      <td>[% HTML.escape(SELF.make_shipto_title(invoice.shipto || delivery_order.custom_shipto)) %]</td>
51
     </tr>
52
    [%- END %]
53
   </tbody>
54
  </table>
55

  
56
  [% IF !SELF.invoice_ids.size %]
57
   [% L.paginate_controls %]
62
    [% IF SELF.printers.size %]
63
      <div id="print_options" class="hidden">
64
        <p>
65
          [% LxERP.t8("Print destination") %]:
66
          [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
67
             CALL printers.import(SELF.printers);
68
             L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
69
        </p>
70
        <p>[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]</p>
71
      </div>
72
    [% END %]
58 73
  [% END %]
59

  
60
  [% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
61
  [% L.hidden_tag("printer_id") %]
62
 </form>
63

  
64
 [% IF SELF.printers.size %]
65
  <div id="print_options" class="hidden">
66
   <p>
67
    [% LxERP.t8("Print destination") %]:
68
    [% SET  printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
69
       CALL printers.import(SELF.printers);
70
       L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=FORM.printer_id) %]
71
   </p>
72

  
73
   <p>
74
    [% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
75
   </p>
76
  </div>
77
 [% END %]
78
[%- END %]
79
[%- END %]
74
[% END %]

Auch abrufbar als: Unified diff