Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 660a8538

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

  • ID 660a853876e4684a18924b7fb2781cd04823978b
  • Vorgänger 7ed0fa64
  • Nachfolger c84f7ec3

Neues Design 2019 Standard-Code templates/webpages/sepa/bank_transfer_edit.html

Unterschiede anzeigen:

templates/webpages/sepa/bank_transfer_edit.html
4 4
[% USE L %]
5 5

  
6 6
[% IF vc == 'vendor' %]
7
 [% SET is_vendor = 1 %]
8
 [% SET arap = 'ap' %]
9
 [% SET iris = 'ir' %]
7
  [% SET is_vendor = 1 %]
8
  [% SET arap = 'ap' %]
9
  [% SET iris = 'ir' %]
10 10
[% ELSE %]
11
 [% SET is_vendor = 0 %]
12
 [% SET arap = 'ar' %]
13
 [% SET iris = 'is' %]
14
[%- END %]
11
  [% SET is_vendor = 0 %]
12
  [% SET arap = 'ar' %]
13
  [% SET iris = 'is' %]
14
[% END %]
15

  
15 16
<h1>[% title %]: [% HTML.escape(export.ids.join(', ')) %]</h1>
16 17

  
17
 <form action="sepa.pl" method="post" id="form">
18
  <p>
19
   <table>
18
<form action="sepa.pl" method="post" id="form">
19

  
20
<table>
21
  <thead>
20 22
    <tr>
21
     <th class="listheading" align="center"><input type="checkbox" id="select_all"></th>
22
     <th class="listheading">[% 'Invoice' | $T8 %]</th>
23
     <th class="listheading">[%- IF is_vendor %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</th>
24
     [%- IF is_vendor %]
25
      <th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
26
      <th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
27
     [%- ELSE %]
28
      <th class="listheading" colspan="2">[% 'Target bank account' | $T8 %]</th>
29
      <th class="listheading" colspan="2">[% 'Source bank account' | $T8 %]</th>
30
     [%- END %]
31
     <th class="listheading" align="right">[% 'Amount' | $T8 %]</th>
32
     <th class="listheading" align="right">[% 'Skonto amount' | $T8 %]</th>
33
     <th class="listheading" align="right">[% 'Payment type' | $T8 %]</th>
34
     [% IF vc == 'customer' %]
35
      <th class="listheading" align="right">[% 'Mandator ID' | $T8 %]</th>
36
     [%- END %]
37
     <th class="listheading">[% 'Reference' | $T8 %]</th>
38
     <th class="listheading" align="right">[% 'Requested execution date' | $T8 %]</th>
39
     <th class="listheading" align="right">[% 'Execution date' | $T8 %]</th>
23
      <th><input type="checkbox" id="select_all"></th>
24
      <th>[% 'Invoice' | $T8 %]</th>
25
      <th>[% IF is_vendor %][% 'Vendor' | $T8 %][% ELSE %][% LxERP.t8('Customer') %][% END %]</th>
26
      [% IF is_vendor %]
27
      <th colspan="2">[% 'Source bank account' | $T8 %]</th>
28
      <th colspan="2">[% 'Target bank account' | $T8 %]</th>
29
      [% ELSE %]
30
      <th colspan="2">[% 'Target bank account' | $T8 %]</th>
31
      <th colspan="2">[% 'Source bank account' | $T8 %]</th>
32
      [% END %]
33
      <th>[% 'Amount' | $T8 %]</th>
34
      <th>[% 'Skonto amount' | $T8 %]</th>
35
      <th>[% 'Payment type' | $T8 %]</th>
36
      [% IF vc == 'customer' %]
37
      <th>[% 'Mandator ID' | $T8 %]</th>
38
      [% END %]
39
      <th>[% 'Reference' | $T8 %]</th>
40
      <th>[% 'Requested execution date' | $T8 %]</th>
41
      <th>[% 'Execution date' | $T8 %]</th>
40 42
    </tr>
41 43
    <tr>
42
     <th class="listheading" colspan="3">&nbsp;</th>
43
     <th class="listheading">[% 'IBAN' | $T8 %]</th>
44
     <th class="listheading">[% 'BIC' | $T8 %]</th>
45
     <th class="listheading">[% 'IBAN' | $T8 %]</th>
46
     <th class="listheading">[% 'BIC' | $T8 %]</th>
47
     [%- IF show_post_payments_button %]
48
      <th class="listheading" colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]">&nbsp;</th>
49
      <th class="listheading">
50
        [% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %]
51
      </th>
52
     [%- ELSE %]
53
      <th class="listheading" colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]">&nbsp;</th>
54
     [%- END %]
44
      <th colspan="3">&nbsp;</th>
45
      <th>[% 'IBAN' | $T8 %]</th>
46
      <th>[% 'BIC' | $T8 %]</th>
47
      <th>[% 'IBAN' | $T8 %]</th>
48
      <th>[% 'BIC' | $T8 %]</th>
49
      [% IF show_post_payments_button %]
50
      <th colspan="[% IF vc == 'customer' %]6[% ELSE %]5[% END %]">&nbsp;</th>
51
      <th> [% L.date_tag('set_all_execution_date', '', onchange='set_all_execution_date_fields(this);') %] </th>
52
      [% ELSE %]
53
      <th colspan="[% IF vc == 'customer' %]7[% ELSE %]6[% END %]">&nbsp;</th>
54
      [% END %]
55 55
    </tr>
56
  </thead>
57
  <tbody>
58
    [% FOREACH item = export.items %]
59
      <tr>
60
        <td>
61
          [% IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %]
62
            [% L.hidden_tag("items[+].id", item.id) %]
63
            [% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %]
64
            [% L.checkbox_tag("ids[]", value=item.id) %]
65
          [% END %]
66
        </td>
67
        <td><a href="[% IF item.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&type=invoice&id=[% IF is_vendor %][% HTML.url(item.ap_id) %][% ELSE %][% HTML.url(item.ar_id) %][% END %]">[% HTML.escape(item.invnumber) %]</a></td>
68
        <td>[% HTML.escape(item.vc_name) %]</td>
69
        <td>[% HTML.escape(item.our_iban) %]</td>
70
        <td>[% HTML.escape(item.our_bic) %]</td>
71
        <td>[% HTML.escape(item.vc_iban) %]</td>
72
        <td>[% HTML.escape(item.vc_bic) %]</td>
73
        <td>[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
74
        <td>[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td>
75
        <td>[% item.payment_type | $T8 %]</td>
76
        [% IF vc == 'customer' %]
77
          <td>[% HTML.escape(item.mandator_id) %]</td>
78
        [% END %]
79
        <td>[% HTML.escape(item.reference) %]</td>
80
        <td>[% HTML.escape(item.requested_execution_date) %]</td>
81
        <td>
82
          [% IF item.executed %]
83
            [% HTML.escape(item.execution_date) %]
84
          [% ELSIF item.export_closed %]
85
            [% 'not executed' | $T8 %]
86
          [% ELSE %]
87
            [% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
88
          [% END %]
89
        </td>
90
      </tr>
91
    [% END %]
92
  </tbody>
93
</table>
56 94

  
57
    [%- FOREACH item = export.items %]
58
     <tr class="listrow">
59
      <td align="center">
60
       [%- IF (show_post_payments_button && !item.executed) || (!show_post_payments_button && item.executed) %]
61
        [% L.hidden_tag("items[+].id", item.id) %]
62
        [% L.hidden_tag("items[].sepa_export_id", item.sepa_export_id) %]
63
        [% L.checkbox_tag("ids[]", value=item.id) %]
64
       [%- END %]
65
      </td>
66
      <td>
67
       <a href="[% IF item.invoice %][% iris %][% ELSE %][% arap %][% END %].pl?action=edit&type=invoice&id=[% IF is_vendor %][% HTML.url(item.ap_id) %][% ELSE %][% HTML.url(item.ar_id) %][% END %]">[% HTML.escape(item.invnumber) %]</a>
68
      </td>
69
      <td>[% HTML.escape(item.vc_name) %]</td>
70
      <td>[% HTML.escape(item.our_iban) %]</td>
71
      <td>[% HTML.escape(item.our_bic) %]</td>
72
      <td>[% HTML.escape(item.vc_iban) %]</td>
73
      <td>[% HTML.escape(item.vc_bic) %]</td>
74
      <td align="right">[% HTML.escape(LxERP.format_amount(item.amount, 2)) %]</td>
75
      <td align="right">[% HTML.escape(LxERP.format_amount(item.skonto_amount, 2)) %]</td>
76
      <td align="right">[% item.payment_type | $T8 %]</td>
77
      [% IF vc == 'customer' %]
78
       <td>[% HTML.escape(item.mandator_id) %]</td>
79
      [%- END %]
80
      <td>[% HTML.escape(item.reference) %]</td>
81
      <td align="right">[% HTML.escape(item.requested_execution_date) %]</td>
82
      <td align="right" nowrap>
83
       [%- IF item.executed %]
84
        [% HTML.escape(item.execution_date) %]
85
       [%- ELSIF item.export_closed %]
86
        [% 'not executed' | $T8 %]
87
       [%- ELSE %]
88
         [% L.date_tag('items[].execution_date', item.requested_execution_date || current_date) %]
89
       [%- END %]
90
      </td>
91
     </tr>
92
    [%- END %]
93
   </table>
94
  </p>
95
<script type="text/javascript">
96
  function set_all_execution_date_fields(input) {
97
    var new_date = $(input).val();
98
    $('INPUT[name="items[].execution_date"]').each(function() {
99
      $(this).val(new_date);
100
    });
101
  }
95 102

  
96
  <script type="text/javascript">
97
   <!--
98
    function set_all_execution_date_fields(input) {
99
      var new_date = $(input).val();
100
      $('INPUT[name="items[].execution_date"]').each(function() {
101
        $(this).val(new_date);
102
      });
103
    }
103
  $(function() {
104
    $("#select_all").checkall('INPUT[name="ids[]"]');
105
  });
106
</script>
104 107

  
105
    $(function() {
106
      $("#select_all").checkall('INPUT[name="ids[]"]');
107
    });
108
     -->
109
  </script>
108
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
110 109

  
111
     <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
112
 </form>
110
</form>

Auch abrufbar als: Unified diff