Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4d4446b4

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 4d4446b46e6972b779b32e46466f1cdf758d783c
  • Vorgänger 87dda13c
  • Nachfolger ce116d27

Neues Design 2019 Standard-Code templates/webpages/dunning/show_invoices.html

Unterschiede anzeigen:

templates/webpages/dunning/show_invoices.html
6 6
<h1>[% title %]</h1>
7 7

  
8 8
[% SET all_active = 1 %][% FOREACH row = DUNNINGS %][% IF !row.active %][% SET all_active = 0 %][% LAST %][% END %][% END %]
9
[% SET all_email = 1 %][% FOREACH row = DUNNINGS %][% IF !row.email %][% SET all_email = 0 %][% LAST %][% END %][% END %]
9
[% SET all_email = 1 %] [% FOREACH row = DUNNINGS %][% IF !row.email %][% SET all_email = 0 %]  [% LAST %][% END %][% END %]
10 10
[% SET all_include_invoices = 1 %][% FOREACH row = DUNNINGS %][% IF !row.print_original_invoice %][% SET all_include_invoices = 0 %][% LAST %][% END %][% END %]
11
 <form name="Form" method="post" action="dn.pl" id="form">
12

  
13
  <h2>[% LxERP.t8("Print options") %]</h2>
14

  
15
  [% L.checkbox_tag("force_lang", label=LxERP.t8('Override invoice language'), checked=force_lang) %]
16
  [% PRINT_OPTIONS %]
17

  
18
  <h2>[% LxERP.t8("Overdue invoices") %]</h2>
19

  
11
<form name="Form" method="post" action="dn.pl" id="form">
12

  
13
<div class="wrapper">
14
  <div class="select-item control-panel">
15
    <h3>[% LxERP.t8("Print options") %]</h3>
16
    [% L.checkbox_tag("force_lang", label=LxERP.t8('Override invoice language'), checked=force_lang) %]
17
    [% PRINT_OPTIONS %]
18
  </div>
20 19
  <p>[% 'The columns &quot;Dunning Duedate&quot;, &quot;Total Fees&quot; and &quot;Interest&quot; show data for the previous dunning created for this invoice.' | $T8 %]</p>
21

  
22
  <table width="100%" id="dunning_invoice_list">
23
   <th class="listheading" colspan="2">[% 'Current / Next Level' | $T8 %]</th>
24

  
25
   <th class="listheading">
26
    [% L.checkbox_tag('selectall_active', checkall='INPUT[name*=active_]', checked=all_active) %]
27
    <label for="selectall_active">[% 'Active?' | $T8 %]</label>
28
   </th>
29

  
30
   <th class="listheading">
31
    [% L.checkbox_tag('selectall_email', checkall='INPUT[name*=email_]', checked=all_email) %]
32
    <label for="selectall_email">[% 'eMail?' | $T8 %]</label>
33
   </th>
34
   <th class="listheading">
35
    [% L.checkbox_tag('selectall_include_invoices', checkall='INPUT[name*=include_invoice_]', checked=all_include_invoices) %]
36
    <label for="selectall_include_invoices">[% 'Include original Invoices?' | $T8 %]</label>
37
   </th>
38

  
39
   <th class="listheading">[% 'Customername' | $T8 %]</th>
40
   <th class="listheading">[% 'Department' | $T8 %]</th>
41
   <th class="listheading">[% 'Language' | $T8 %]</th>
42
   <th class="listheading">[% 'Invno.' | $T8 %]</th>
43
   <th class="listheading">[% 'Invdate' | $T8 %]</th>
44
   <th class="listheading">[% 'Inv. Duedate' | $T8 %]</th>
45
   <th class="listheading">[% 'Amount' | $T8 %]</th>
46
   <th class="listheading">[% 'Open Amount' | $T8 %]</th>
47
   <th class="listheading">[% 'Dunning Duedate' | $T8 %]</th>
48
   <th class="listheading">[% 'Total Fees' | $T8 %]</th>
49
   <th class="listheading">[% 'Interest' | $T8 %]</th>
50
   [% IF l_include_direct_debit %]
51
    <th class="listheading">[% 'direct debit' | $T8 %]</th>
52
   [% END %]
53

  
54
   <!-- Ausgabe der einzelnen Zeilen -->
55

  
56
   [% FOREACH row = DUNNINGS %]
57
    <tr class="listrow[% loop.count % 2 %][% IF row.direct_debit %] direct_debit[% END %]">
58

  
59
     <td>
60
      <input type="hidden" name="inv_id_[% loop.count %]" size="2" value="[% HTML.escape(row.id) %]">
61
      <input type="hidden" name="customer_id_[% loop.count %]" size="2" value="[% HTML.escape(row.customer_id) %]">
62
      [% IF row.dunning_level %][% HTML.escape(row.dunning_level) %][% ELSE %]&nbsp;[% END %]
63
     </td>
64

  
65
     <td>
66
      [% IF row.credit_note %]
67
        [% LxERP.t8("Add Credit Note for this dunning level:") %]
68
        <input type="hidden" name="credit_note_[% loop.count %]" value="1">
69
      [% END %]
70
      <select name="next_dunning_config_id_[% loop.count %]">
71
       [% FOREACH cfg_row = row.DUNNING_CONFIG %]<option value="[% HTML.escape(cfg_row.id) %]" [% IF cfg_row.SELECTED %]selected[% END %]>[% HTML.escape(cfg_row.dunning_description) %]</option>[% END %]
72
      </select>
73
     </td>
74

  
75
     <td><input type="checkbox" name="active_[% loop.count %]" value="1" [% IF row.active %]checked[% END %]></td>
76
     <td><input type="checkbox" name="email_[% loop.count %]" value="1" [% IF row.email %]checked[% END %]></td>
77
     <td><input type="checkbox" name="include_invoice_[% loop.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]></td>
78
     <td><input type="hidden" name="customername_[% loop.count %]" size="6" value="[% HTML.escape(row.customername) %]">[% HTML.escape(row.customername) %]</td>
79
     <td><input type="hidden" name="department_[% loop.count %]" size="6" value="[% HTML.escape(row.departmentname) %]">[% HTML.escape(row.departmentname) %]</td>
80
     <td><input type="hidden" name="language_id_[% loop.count %]" size="6" value="[% HTML.escape(row.language_id) %]">[% HTML.escape(row.language) %]</td>
81
     <td>
82
      <input type="hidden" name="invnumber_[% loop.count %]" size="6" value="[% HTML.escape(row.invnumber) %]">
83
      <a href="[% IF row.invoice %]is[% ELSE %]ar[% END %].pl?action=edit&type=invoice&id=[% row.id | url %]">[% HTML.escape(row.invnumber) %]</a>
84
     </td>
85
     <td><input type="hidden" name="invdate_[% loop.count %]" size="6" value="[% HTML.escape(row.transdate) %]">[% HTML.escape(row.transdate) %]</td>
86
     <td><input type="hidden" name="inv_duedate_[% loop.count %]" size="6" value="[% HTML.escape(row.duedate) %]">[% HTML.escape(row.duedate) %]</td>
87
     <td align="right"><input type="hidden" name="amount_[% loop.count %]" size="6" value="[% HTML.escape(row.amount) %]">[% HTML.escape(row.amount) %]</td>
88
     <td align="right"><input type="hidden" name="open_amount_[% loop.count %]" size="6" value="[% HTML.escape(row.open_amount) %]">[% HTML.escape(row.open_amount) %]</td>
89
     <td>[% HTML.escape(row.dunning_duedate) %]</td>
90
     <td align="right"><input type="hidden" name="fee_[% loop.count %]" size="6" value="[% HTML.escape(row.fee) %]">[% HTML.escape(row.fee) %]</td>
91
     <td align="right"><input type="hidden" name="interest_[% loop.count %]" size="6" value="[% HTML.escape(row.interest) %]">[% HTML.escape(row.interest) %]</td>
92
     [% IF l_include_direct_debit %]
93
     <td>
94
      [% IF row.direct_debit %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]
95
     </td>
20
</div><!-- /.wrapper -->
21

  
22
<table id="dunning_invoice_list" class="tbl-list wi-moderate">
23
  <caption>[% LxERP.t8("Overdue invoices") %]</caption>
24
  <thead>
25
    <th colspan="2">[% 'Current / Next Level' | $T8 %]</th>
26
    <th class="center">
27
      <label for="selectall_active">[% 'Active?' | $T8 %]</label>
28
      [% L.checkbox_tag('selectall_active', checkall='INPUT[name*=active_]', checked=all_active) %]
29
    </th>
30
    <th class="center">
31
      <label for="selectall_email">[% 'eMail?' | $T8 %]</label>
32
      [% L.checkbox_tag('selectall_email', checkall='INPUT[name*=email_]', checked=all_email) %]
33
    </th>
34
    <th class="center">
35
      <label for="selectall_include_invoices">[% 'Include original Invoices?' | $T8 %]</label>
36
      [% L.checkbox_tag('selectall_include_invoices', checkall='INPUT[name*=include_invoice_]', checked=all_include_invoices) %]
37
    </th>
38
    <th>[% 'Customername' | $T8 %]</th>
39
    <th>[% 'Department' | $T8 %]</th>
40
    <th>[% 'Language' | $T8 %]</th>
41
    <th>[% 'Invno.' | $T8 %]</th>
42
    <th>[% 'Invdate' | $T8 %]</th>
43
    <th>[% 'Inv. Duedate' | $T8 %]</th>
44
    <th class="right">[% 'Amount' | $T8 %]</th>
45
    <th class="right">[% 'Open Amount' | $T8 %]</th>
46
    <th>[% 'Dunning Duedate' | $T8 %]</th>
47
    <th class="right">[% 'Total Fees' | $T8 %]</th>
48
    <th class="right">[% 'Interest' | $T8 %]</th>
49
    [% IF l_include_direct_debit %]
50
      <th class="right">[% 'direct debit' | $T8 %]</th>
51
    [% END %]
52
  </thead>
53
  <!-- Ausgabe der einzelnen Zeilen -->
54
  <tbody>
55
    [% FOREACH row = DUNNINGS %]
56
       <tr[% IF row.direct_debit %] class="direct_debit"[% END %]>
57
         <td>
58
           <input type="hidden" name="inv_id_[% loop.count %]" size="2" value="[% HTML.escape(row.id) %]">
59
           <input type="hidden" name="customer_id_[% loop.count %]" size="2" value="[% HTML.escape(row.customer_id) %]">
60
           [% IF row.dunning_level %][% HTML.escape(row.dunning_level) %][% ELSE %]&nbsp;[% END %]
61
         </td>
62
         <td>
63
           [% IF row.credit_note %]
64
             [% LxERP.t8("Add Credit Note for this dunning level:") %]
65
             <input type="hidden" name="credit_note_[% loop.count %]" value="1">
66
           [% END %]
67
           <select name="next_dunning_config_id_[% loop.count %]">
68
             [% FOREACH cfg_row = row.DUNNING_CONFIG %]<option value="[% HTML.escape(cfg_row.id) %]" [% IF cfg_row.SELECTED %]selected[% END %]>[% HTML.escape(cfg_row.dunning_description) %]</option>[% END %]
69
           </select>
70
         </td>
71
         <td class="center"><input type="checkbox" name="active_[% loop.count %]" value="1" [% IF row.active %]checked[% END %]></td>
72
         <td class="center"><input type="checkbox" name="email_[% loop.count %]" value="1" [% IF row.email %]checked[% END %]></td>
73
         <td class="center"><input type="checkbox" name="include_invoice_[% loop.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]></td>
74
         <td><input type="hidden" name="customername_[% loop.count %]" size="6" value="[% HTML.escape(row.customername) %]">[% HTML.escape(row.customername) %]</td>
75
         <td><input type="hidden" name="department_[% loop.count %]" size="6" value="[% HTML.escape(row.departmentname) %]">[% HTML.escape(row.departmentname) %]</td>
76
         <td><input type="hidden" name="language_id_[% loop.count %]" size="6" value="[% HTML.escape(row.language_id) %]">[% HTML.escape(row.language) %]</td>
77
         <td>
78
           <input type="hidden" name="invnumber_[% loop.count %]" size="6" value="[% HTML.escape(row.invnumber) %]">
79
           <a href="[% IF row.invoice %]is[% ELSE %]ar[% END %].pl?action=edit&type=invoice&id=[% row.id | url %]">[% HTML.escape(row.invnumber) %]</a>
80
         </td>
81
         <td><input type="hidden" name="invdate_[% loop.count %]" size="6" value="[% HTML.escape(row.transdate) %]">[% HTML.escape(row.transdate) %]</td>
82
         <td><input type="hidden" name="inv_duedate_[% loop.count %]" size="6" value="[% HTML.escape(row.duedate) %]">[% HTML.escape(row.duedate) %]</td>
83
         <td class="numeric"><input type="hidden" name="amount_[% loop.count %]" size="6" value="[% HTML.escape(row.amount) %]">[% HTML.escape(row.amount) %]</td>
84
         <td class="numeric"><input type="hidden" name="open_amount_[% loop.count %]" size="6" value="[% HTML.escape(row.open_amount) %]">[% HTML.escape(row.open_amount) %]</td>
85
         <td>[% HTML.escape(row.dunning_duedate) %]</td>
86
         <td class="numeric"><input type="hidden" name="fee_[% loop.count %]" size="6" value="[% HTML.escape(row.fee) %]">[% HTML.escape(row.fee) %]</td>
87
         <td class="numeric"><input type="hidden" name="interest_[% loop.count %]" size="6" value="[% HTML.escape(row.interest) %]">[% HTML.escape(row.interest) %]</td>
88
         [% IF l_include_direct_debit %]
89
           <td class="numeric">
90
             [% IF row.direct_debit %][% LxERP.t8("yes") %][% ELSE %][% LxERP.t8("no") %][% END %]
91
           </td>
92
         [% END %]
93
       </tr>
96 94
     [% END %]
97
    </tr>
98
   [% END %]
99
  </table>
95
  </tbody>
96
</table>
97

  
98
<input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
99
<input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
100
<input name="l_include_credit_notes" type="hidden" value="[% HTML.escape(l_include_credit_notes) %]">
101
<input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
100 102

  
101
  <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
102
  <input name="groupinvoices" type="hidden" value="[% HTML.escape(groupinvoices) %]">
103
  <input name="l_include_credit_notes" type="hidden" value="[% HTML.escape(l_include_credit_notes) %]">
104
  <input name="callback" type="hidden" value="[% HTML.escape(callback) %]">
105
 </form>
103
</form>

Auch abrufbar als: Unified diff