Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 14e4509c

Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt

  • ID 14e4509c7fc1a04615947ec0bad7ccb3e4645c81
  • Vorgänger 7a29507b
  • Nachfolger f7dcb458

Neues Design 2019 Standard-Code templates/webpages/mass_invoice_create_print_from_do/

Unterschiede anzeigen:

templates/webpages/mass_invoice_create_print_from_do/_create_print_all_status.html
20 20
[% END %]
21 21
</p>
22 22

  
23
<p>
24 23
 <table>
25 24
  <tr>
26 25
   <th valign="top" align="left">[% LxERP.t8("Current status:") %]</th>
......
103 102
  </tr>
104 103

  
105 104
 </table>
106
</p>
105

  
templates/webpages/mass_invoice_create_print_from_do/_create_print_all_step_1.html
36 36

  
37 37
<p>
38 38
 [% L.button_tag("kivi.MassInvoiceCreatePrint.createPrintAllStartProcess();", LxERP.t8("Start process"), id="cpa_start_process_button") %]
39
 [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link") %]
39
 [% L.link("#", LxERP.t8("Abort"), onclick="\$('#create_print_all_dialog').dialog('close');", id="cpa_start_process_abort_link", class="button neutral") %]
40 40
</p>
templates/webpages/mass_invoice_create_print_from_do/list_invoices.html
4 4

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

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

  
9 9
[% LIST_ACTION     = 'list_invoices' %]
10
[%- 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 %]
11 11

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

  
21
 <form method="post" action="controller.pl" id="report_form">
22
  <table width="100%">
23
   <thead>
24
    <tr class="listheading">
25
     <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
26
     <th>[% L.sortable_table_header("transdate") %]</th>
27
     <th>[% L.sortable_table_header("reqdate") %]</th>
28
     <th>[% L.sortable_table_header("invnumber") %]</th>
29
     <th>[% L.sortable_table_header("donumber") %]</th>
30
     <th>[% L.sortable_table_header("customer") %]</th>
31
     <th>[% LxERP.t8("Shipto") %]</th>
32
    </tr>
33
   </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>
34 61

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

  
58
  [% IF !SELF.invoice_ids.size %]
59
   [% 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 %]
60 73
  [% END %]
61

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

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

  
75
   <p>
76
    [% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]
77
   </p>
78
  </div>
79
 [% END %]
80
[%- END %]
81
[%- END %]
74
[% END %]
templates/webpages/mass_invoice_create_print_from_do/list_sales_delivery_orders.html
5 5

  
6 6
<h1>[% FORM.title %]</h1>
7 7

  
8
[%- INCLUDE "common/flash.html" %]
8
[% INCLUDE "common/flash.html" %]
9 9

  
10 10
[% LIST_ACTION  = 'list_sales_delivery_orders' %]
11 11
[% SET MODELS = SELF.sales_delivery_order_models;
12 12
       dummy  = MODELS.finalize %]
13 13

  
14
[%- PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered  %]
14
[% PROCESS 'mass_invoice_create_print_from_do/_filter.html' filter=SELF.sales_delivery_order_models.filtered.laundered  %]
15 15

  
16 16
[% IF noshow == 1 %]
17 17
  [% SET sales_delivery_orders = MODELS.get %]
18
   <form method="post" action="controller.pl">
19
  [% IF !sales_delivery_orders.size %]
20
     <p>
21
    [%- LxERP.t8("There are currently no open sales delivery orders.") %]
22
     </p>
23
  [%- ELSE %]
24
    <table width="100%">
25
     <thead>
26
      <tr class="listheading">
27
       <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
28
       <th>[% L.sortable_table_header("transdate") %]</th>
29
       <th>[% L.sortable_table_header("donumber") %]</th>
30
       <th>[% L.sortable_table_header("ordnumber") %]</th>
31
      <th>[% L.sortable_table_header("customer") %]</th>
32
     </tr>
33
     </thead>
34

  
35
     <tbody>
36
     [%- FOREACH sales_delivery_order = sales_delivery_orders %]
37
     <tr class="listrow">
38
      <td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
39
      <td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
40
      <td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
41
      [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
42
        <td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
43
      [%- ELSE -%]
44
        <td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
45
      [%- END -%]
46
      <td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
47
     </tr>
48
     [%- END %]
49
     </tbody>
50
    </table>
51

  
52
    [% L.paginate_controls %]
53

  
54
    <div id="create_print_all_dialog" style="display: none;">
55
     [%- INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
18
  <form method="post" action="controller.pl">
19
    <div class="wrapper">
20
        [% IF !sales_delivery_orders.size %]
21
          <p>[% LxERP.t8("There are currently no open sales delivery orders.") %]</p>
22
        [% ELSE %]
23
          <table class="tbl-list">
24
            <thead>
25
              <tr>
26
                <th>[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %]</th>
27
                <th>[% L.sortable_table_header("transdate") %]</th>
28
                <th>[% L.sortable_table_header("donumber") %]</th>
29
                <th>[% L.sortable_table_header("ordnumber") %]</th>
30
                <th>[% L.sortable_table_header("customer") %]</th>
31
             </tr>
32
            </thead>
33
            <tbody>
34
              [% FOREACH sales_delivery_order = sales_delivery_orders %]
35
                <tr class="listrow">
36
                  <td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
37
                  <td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
38
                  <td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
39
                  [%- IF INSTANCE_CONF.get_feature_experimental_order -%]
40
                  <td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
41
                  [%- ELSE -%]
42
                  <td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
43
                  [%- END -%]
44
                  <td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
45
                </tr>
46
              [% END %]
47
            </tbody>
48
          </table>
49
          [% L.paginate_controls %]
50
          <div id="create_print_all_dialog" style="display: none;">
51
            [% INCLUDE 'mass_invoice_create_print_from_do/_create_print_all_step_1.html' %]
52
          </div>
53
        [% END %]
56 54
    </div>
57
  [%- END %]
58
 </form>
59
[%- END %]
55
  </form>
56
[% END %]

Auch abrufbar als: Unified diff