Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 64202118

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

  • ID 642021183ef786f60111d0da77089a26c3b32f6c
  • Vorgänger f84c8ea9
  • Nachfolger 0a420f51

Neues Design 2019 Standard-Code templates/webpages/bank_transactions/add_list.html

Unterschiede anzeigen:

templates/webpages/bank_transactions/add_list.html
1
[%- IF !INVOICES.size %]
2
  <p class="message_hint">[% 'No data was found.' | $T8 %]</p>
3
[%- ELSE %]
4
  <table width="100%">
5
   <tr class="listheading">
6
    <th>[% L.checkbox_tag('invoices_check_all') %]</th>
7
    <th>[%- LxERP.t8("Invoice number") %]</th>
8
    <th>[%- LxERP.t8("Amount") %]</th>
9
    <th>[%- LxERP.t8("Open amount") %]</th>
10
    <th>[%- LxERP.t8("Amount less skonto") %]</th>
11
    <th>[%- LxERP.t8("Invoice Date") %]</th>
12
    <th>[%- LxERP.t8("Customer/Vendor Number") %]</th>
13
    <th>[%- LxERP.t8("Customer/Vendor Name") %]</th>
14
   </tr>
15 1
[% USE T8 %]
16 2
[% USE HTML %]
17 3
[% USE LxERP %]
18 4
[% USE P %]
19 5
[% USE L %]
20 6

  
21
  [%- FOREACH invoice = INVOICES %]
22
   <tr class="listrow[% loop.count % 2 %]">
23
    <td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
24
    <td>[%- invoice.invnumber %]</td>
25
    <td align="right">[%- LxERP.format_amount(invoice.amount, 2) %]</td>
26
    <td align="right">[%- LxERP.format_amount(invoice.open_amount, 2) %]</td>
27
    <td align="right">[%- LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td>
28
    <td align="right">[%- invoice.transdate_as_date %]</td>
29
    <td>[%- invoice.vendor.vendornumber %][%- invoice.customer.customernumber %]</td>
30
    <td>[%- invoice.vendor.name %][%- invoice.customer.name %]</td>
31
   </tr>
32
  [%- END %]
7
[% IF !INVOICES.size %]
8
  <p class="message message_hint">[% 'No data was found.' | $T8 %]</p>
9

  
10
[% ELSE %]
11

  
12
  <table class="tbl-list">
13
    <thead>
14
      <tr>
15
        <th>[% L.checkbox_tag('invoices_check_all') %]</th>
16
        <th>[% LxERP.t8("Invoice number") %]</th>
17
        <th>[% LxERP.t8("Amount") %]</th>
18
        <th>[% LxERP.t8("Open amount") %]</th>
19
        <th>[% LxERP.t8("Amount less skonto") %]</th>
20
        <th>[% LxERP.t8("Invoice Date") %]</th>
21
        <th>[% LxERP.t8("Customer/Vendor number") %]</th>
22
        <th>[% LxERP.t8("Customer/Vendor name") %]</th>
23
      </tr>
24
    </thead>
25
    <tbody>
26
      [% FOREACH invoice = INVOICES %]
27
      <tr>
28
        <td>[% L.checkbox_tag('invoice_id[]', value=invoice.id) %]</td>
29
        <td>[% invoice.invnumber %]</td>
30
        <td>[% LxERP.format_amount(invoice.amount, 2) %]</td>
31
        <td>[% LxERP.format_amount(invoice.open_amount, 2) %]</td>
32
        <td>[% LxERP.format_amount(invoice.amount_less_skonto, 2) %]</td>
33
        <td>[% invoice.transdate_as_date %]</td>
34
        <td>[% invoice.vendor.vendornumber %][% invoice.customer.customernumber %]</td>
35
        <td>[% invoice.vendor.name %][% invoice.customer.name %]</td>
36
      </tr>
37
      [% END %]
38
    </tbody>
33 39
  </table>
34 40

  
35
<script type="text/javascript">
36
<!--
37
$(function() {
38
    $('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
41
  <script type="text/javascript"><!--
42
    $(function() {
43
      $('#invoices_check_all').checkall('INPUT[name="invoice_id[]"]');
39 44
    });
40
-->
41
</script>
42
[%- END %]
45
  --></script>
43 46

  
47
[% END %]

Auch abrufbar als: Unified diff