Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 36643e56

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

  • ID 36643e56016919673e4b0b7289d7dcae5fb306ef
  • Vorgänger 0d05b26c
  • Nachfolger aac4165a

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

Unterschiede anzeigen:

templates/webpages/dunning/edit_config.html
4 4
[% USE L %]
5 5
<h1>[% title %]</h1>
6 6

  
7
 <script type="text/javascript" src="js/common.js"></script>
8
 <script type="text/javascript" src="js/dunning.js"></script>
9

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

  
13
   <tr>
14
    <th class="listheading">[% 'Dunning Level' | $T8 %]</th>
15
    <th class="listheading">[% 'Dunning Description' | $T8 %]</th>
16
    <th class="listheading">[% 'Active?' | $T8 %]</th>
17
    <th class="listheading">[% 'eMail Send?' | $T8 %]</th>
18
<!--     <th class="listheading">[% 'Auto Send?' | $T8 %]</th>  -->
19
    <th class="listheading">[% 'Create invoice?' | $T8 %]</th>
20
    <th class="listheading">[% 'Fristsetzung' | $T8 %]</th>
21
    <th class="listheading">[% 'Duedate +Days' | $T8 %]</th>
22
    <th class="listheading">[% 'Fee' | $T8 %]</th>
23
    <th class="listheading">[% 'Interest Rate' | $T8 %]</th>
24
    <th class="listheading">[% 'Template' | $T8 %]</th>
25
   </tr>
26

  
27
   [% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %]
28
    <tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
29
     <td>
30
      <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
31
      <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
32
      [% DUNNING_it.count %]
33
     </td>
34

  
35
     <td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td>
36
     <td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td>
37

  
38
     <td>
39
      <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
40
      <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')">
41
       [% 'L' | $T8 %]</button>
42
      <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
43
      <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
44
      <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
45
     </td>
46

  
47
<!--      <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> -->
48
     <td><input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1" [% IF row.create_invoices_for_fees %]checked[% END %]></td>
49
     <td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td>
50
     <td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td>
51
     <td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td>
52
     <td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td>
53
     <td><input name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"></td>
7
<script type="text/javascript" src="js/common.js"></script>
8
<script type="text/javascript" src="js/dunning.js"></script>
9

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

  
12
<div class="wrapper">
13
<table class="tbl-list wi-moderate">
14
  <caption>[% 'Dunning levels & dunning types' | $T8 %]</caption>
15
  <thead>
16
    <tr>
17
      <th class="center">[% 'Dunning Level' | $T8 %]</th>
18
      <th>[% 'Dunning Description' | $T8 %]</th>
19
      <th class="center">[% 'Active?' | $T8 %]</th>
20
      <th class="center">[% 'eMail Send?' | $T8 %]</th>
21
<!--     <th>[% 'Auto Send?' | $T8 %]</th>  -->
22
      <th class="center">[% 'Create invoice?' | $T8 %]</th>
23
      <th class="right">[% 'Fristsetzung' | $T8 %]</th>
24
      <th class="right">[% 'Duedate +Days' | $T8 %]</th>
25
      <th class="right">[% 'Fee' | $T8 %]</th>
26
      <th class="right">[% 'Interest Rate' | $T8 %]</th>
27
      <th>[% 'Template' | $T8 %]</th>
54 28
    </tr>
55
    [% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %]
56
   [% END %]
57

  
58
   [%- UNLESS rowcount %][% SET rowcount = '1' %][% END -%]
59
   <tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]">
60
    <td>
61
     <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
62
     <input type="hidden" name="id_[% rowcount %]">
63
     [% rowcount %]
64
    </td>
65

  
66
    <td><input name="dunning_description_[% rowcount %]"></td>
67
    <td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td>
68

  
69
    <td>
70
     <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
71
     <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')">
72
      [% 'L' | $T8 %]</button>
73
     <input type="hidden" name="email_body_[% rowcount %]">
74
     <input type="hidden" name="email_subject_[% rowcount %]">
75
     <input type="hidden" name="email_attachment_[% rowcount %]">
76
    </td>
29
  </thead>
30
  <tbody>
31
    [% SET odd = '1' %]
32
    [% USE DUNNING_it = Iterator(DUNNING) %]
33
    [% FOREACH row = DUNNING_it %]
34
    <tr>
35
      <td class="center">
36
        <input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]">
37
        <input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]">
38
        [% DUNNING_it.count %]
39
      </td>
40
      <td>
41
        <input type="text" name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]">
42
      </td>
43
      <td class="center">
44
        <input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]>
45
      </td>
46
      <td class="center">
47
        <input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]>
48
        <button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')"> [% 'L' | $T8 %]</button>
49
        <input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]">
50
        <input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]">
51
        <input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]">
52
      </td>
53
  <!--      <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> -->
54
      <td class="center">
55
        <input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1"[% IF row.create_invoices_for_fees %] checked[% END %]>
56
      </td>
57
      <td class="right">
58
        <input type="text" name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]">
59
      </td>
60
      <td class="right">
61
        <input type="text" name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]">
62
      </td>
63
      <td class="right">
64
        <input type="text" name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]">
65
      </td>
66
      <td class="right">
67
        <input type="text" name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%
68
      </td>
69
      <td>
70
        <input type="text" name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]">
71
      </td>
72
    </tr>
73
      [% IF DUNNING_it.last %]
74
        [% SET rowcount = DUNNING_it.size + 1 %]
75
      [% END %]
76
    [% END %]
77

  
78
    [% UNLESS rowcount %][% SET rowcount = '1' %][% END %]
79
    <tr>
80
      <td class="center">
81
        <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
82
        <input type="hidden" name="id_[% rowcount %]">
83
        [% rowcount %]
84
      </td>
85
      <td>
86
        <input type="text" name="dunning_description_[% rowcount %]">
87
      </td>
88
      <td class="center">
89
        <input type="checkbox" name="active_[% rowcount %]" value="1" checked>
90
      </td>
91
      <td class="center">
92
        <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
93
        <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')"> [% 'L' | $T8 %]</button>
94
        <input type="hidden" name="email_body_[% rowcount %]">
95
        <input type="hidden" name="email_subject_[% rowcount %]">
96
        <input type="hidden" name="email_attachment_[% rowcount %]">
97
      </td>
98
  <!--     <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
99
      <td class="center">
100
        <input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked>
101
      </td>
102
      <td class="right">
103
        <input type="text" name="payment_terms_[% rowcount %]" size="3">
104
      </td>
105
      <td class="right">
106
        <input type="text" name="terms_[% rowcount %]" size="3">
107
      </td>
108
      <td class="right">
109
        <input type="text" name="fee_[% rowcount %]" size="5">
110
      </td>
111
      <td class="right">
112
        <input type="text" name="interest_rate_[% rowcount %]" size="4">%
113
      </td>
114
      <td>
115
        <input type="text" name="template_[% rowcount %]">
116
      </td>
117
    </tr>
118
  </tbody>
119
</table>
120
</div><!-- /.wrapper -->
77 121

  
78
<!--     <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
79
    <td><input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked></td>
80
    <td><input name="payment_terms_[% rowcount %]" size="3"></td>
81
    <td><input name="terms_[% rowcount %]" size="3"></td>
82
    <td><input name="fee_[% rowcount %]" size="5"></td>
83
    <td><input name="interest_rate_[% rowcount %]" size="4">%</td>
84
    <td><input name="template_[% rowcount %]"></td>
85
   </tr>
86
  </table>
122
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
87 123

  
88
  <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
124
<div class="wrapper">
89 125

  
90
  <hr size="3" noshade>
126
<p>[% 'If the automatic creation of invoices for fees and interest is switched on for a dunning level then the following accounts will be used for the invoice.' | $T8 %]</p>
91 127

  
92
  <p>[% 'If the automatic creation of invoices for fees and interest is switched on for a dunning level then the following accounts will be used for the invoice.' | $T8 %]</p>
93 128

  
94
  <table>
95
   <tr>
96
    <th align="right">[% 'Account for fees' | $T8 %]</th>
97
    <td>
98
     <select name="AR_amount_fee">
99
      [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
100
      [% END %]
101
     </select>
102
    </td>
103
   </tr>
129
<table class="tbl-horizontal">
130
  <tbody>
131
    <tr>
132
      <th>[% 'Account for fees' | $T8 %]</th>
133
      <td>
134
        <select name="AR_amount_fee" class="wi-verywide">
135
          [% FOREACH row = SELECT_AR_AMOUNT %]
136
          <option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %] selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
137
          [% END %]
138
        </select>
139
      </td>
140
    </tr>
141
    <tr>
142
      <th>[% 'Account for interest' | $T8 %]</th>
143
      <td>
144
        <select name="AR_amount_interest" class="wi-verywide">
145
          [% FOREACH row = SELECT_AR_AMOUNT %]
146
          <option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
147
          [% END %]
148
        </select>
149
      </td>
150
    </tr>
151
    <tr>
152
      <th>[% 'Record in' | $T8 %]</th>
153
      <td>
154
        <select name="AR" class="wi-verywide">
155
          [% FOREACH row = SELECT_AR %]
156
          <option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
157
          [% END %]
158
        </select>
159
      </td>
160
    </tr>
161
    <tr>
162
      <th align="right">[% 'Dunning Creator' | $T8 %]</th>
163
      <td>[% L.select_tag('dunning_creator', [ [ 'current_employee', LxERP.t8('Current Employee') ],[ 'invoice_employee', LxERP.t8('Employee from the original invoice') ]  ], default=dunning_creator) %]
164
      </td>
165
    </tr>
166
  </tbody>
167
</table>
104 168

  
105
   <tr>
106
    <th align="right">[% 'Account for interest' | $T8 %]</th>
107
    <td>
108
     <select name="AR_amount_interest">
109
      [% FOREACH row = SELECT_AR_AMOUNT %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
110
      [% END %]
111
     </select>
112
    </td>
113
   </tr>
169
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
114 170

  
115
   <tr>
116
    <th align="right">[% 'Record in' | $T8 %]</th>
117
    <td>
118
     <select name="AR">
119
      [% FOREACH row = SELECT_AR %]<option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
120
      [% END %]
121
     </select>
122
    </td>
123
   </tr>
124
   <tr>
125
    <th align="right">[% 'Dunning Creator' | $T8 %]</th>
126
    <td>[% L.select_tag('dunning_creator', [ [ 'current_employee', LxERP.t8('Current Employee') ],[ 'invoice_employee', LxERP.t8('Employee from the original invoice') ]  ], default=dunning_creator) %]
127
    </td>
128
   </tr>
129
  </table>
171
</div><!-- /.wrapper -->
130 172

  
131
  <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
132
 </form>
173
</form>

Auch abrufbar als: Unified diff