Revision e9ce7ed1
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
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">[% 'Include original Invoices?' | $T8 %]</th> |
|
21 |
<th class="listheading">[% 'Fristsetzung' | $T8 %]</th> |
|
22 |
<th class="listheading">[% 'Duedate +Days' | $T8 %]</th> |
|
23 |
<th class="listheading">[% 'Fee' | $T8 %]</th> |
|
24 |
<th class="listheading">[% 'Interest Rate' | $T8 %]</th> |
|
25 |
<th class="listheading">[% 'Template' | $T8 %]</th> |
|
26 |
</tr> |
|
27 |
|
|
28 |
[% SET odd = '1' %][% USE DUNNING_it = Iterator(DUNNING) %][% FOREACH row = DUNNING_it %] |
|
29 |
<tr valign="top" class="listrow[% IF odd %]1[% SET odd = '0' %][% ELSE %]0[% SET odd = '1' %][% END %]"> |
|
30 |
<td> |
|
31 |
<input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]"> |
|
32 |
<input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]"> |
|
33 |
[% DUNNING_it.count %] |
|
34 |
</td> |
|
35 |
|
|
36 |
<td><input name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"></td> |
|
37 |
<td><input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]></td> |
|
38 |
|
|
39 |
<td> |
|
40 |
<input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]> |
|
41 |
<button type="button" onclick="set_email_window('email_subject_[% DUNNING_it.count %]', 'email_body_[% DUNNING_it.count %]', 'email_attachment_[% DUNNING_it.count %]')"> |
|
42 |
[% 'L' | $T8 %]</button> |
|
43 |
<input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]"> |
|
44 |
<input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]"> |
|
45 |
<input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]"> |
|
46 |
</td> |
|
47 |
|
|
48 |
<!-- <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> --> |
|
49 |
<td><input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1" [% IF row.create_invoices_for_fees %]checked[% END %]></td> |
|
50 |
<td><input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]></td> |
|
51 |
<td><input name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"></td> |
|
52 |
<td><input name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"></td> |
|
53 |
<td><input name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"></td> |
|
54 |
<td><input name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%</td> |
|
55 |
<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="center">[% 'Include original Invoices?' | $T8 %]</th> |
|
24 |
<th class="right">[% 'Fristsetzung' | $T8 %]</th> |
|
25 |
<th class="right">[% 'Duedate +Days' | $T8 %]</th> |
|
26 |
<th class="right">[% 'Fee' | $T8 %]</th> |
|
27 |
<th class="right">[% 'Interest Rate' | $T8 %]</th> |
|
28 |
<th>[% 'Template' | $T8 %]</th> |
|
56 | 29 |
</tr> |
57 |
[% IF DUNNING_it.last %][% SET rowcount = DUNNING_it.size + 1 %][% END %] |
|
58 |
[% END %] |
|
59 |
|
|
60 |
[%- UNLESS rowcount %][% SET rowcount = '1' %][% END -%] |
|
61 |
<tr valign="top" class="listrow[% IF odd %]1[% ELSE %]0[% END %]"> |
|
62 |
<td> |
|
63 |
<input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]"> |
|
64 |
<input type="hidden" name="id_[% rowcount %]"> |
|
65 |
[% rowcount %] |
|
66 |
</td> |
|
67 |
|
|
68 |
<td><input name="dunning_description_[% rowcount %]"></td> |
|
69 |
<td><input type="checkbox" name="active_[% rowcount %]" value="1" checked></td> |
|
70 |
|
|
71 |
<td> |
|
72 |
<input type="checkbox" name="email_[% rowcount %]" value="1" checked> |
|
73 |
<button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')"> |
|
74 |
[% 'L' | $T8 %]</button> |
|
75 |
<input type="hidden" name="email_body_[% rowcount %]"> |
|
76 |
<input type="hidden" name="email_subject_[% rowcount %]"> |
|
77 |
<input type="hidden" name="email_attachment_[% rowcount %]"> |
|
78 |
</td> |
|
30 |
</thead> |
|
31 |
<tbody> |
|
32 |
[% SET odd = '1' %] |
|
33 |
[% USE DUNNING_it = Iterator(DUNNING) %] |
|
34 |
[% FOREACH row = DUNNING_it %] |
|
35 |
<tr> |
|
36 |
<td class="center"> |
|
37 |
<input type="hidden" name="dunning_level_[% DUNNING_it.count %]" value="[% DUNNING_it.count %]"> |
|
38 |
<input type="hidden" name="id_[% DUNNING_it.count %]" value="[% HTML.escape(row.id) %]"> |
|
39 |
[% DUNNING_it.count %] |
|
40 |
</td> |
|
41 |
<td> |
|
42 |
<input type="text" name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]"> |
|
43 |
</td> |
|
44 |
<td class="center"> |
|
45 |
<input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]> |
|
46 |
</td> |
|
47 |
<td class="center"> |
|
48 |
<input type="checkbox" name="email_[% DUNNING_it.count %]" value="1" [% IF row.email %]checked[% END %]> |
|
49 |
<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> |
|
50 |
<input type="hidden" name="email_body_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_body) %]"> |
|
51 |
<input type="hidden" name="email_subject_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_subject) %]"> |
|
52 |
<input type="hidden" name="email_attachment_[% DUNNING_it.count %]" value="[% HTML.escape(row.email_attachment) %]"> |
|
53 |
</td> |
|
54 |
<!-- <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> --> |
|
55 |
<td class="center"> |
|
56 |
<input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1"[% IF row.create_invoices_for_fees %] checked[% END %]> |
|
57 |
</td> |
|
58 |
<td class="center"> |
|
59 |
<input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]> |
|
60 |
</td> |
|
61 |
<td class="right"> |
|
62 |
<input type="text" name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]"> |
|
63 |
</td> |
|
64 |
<td class="right"> |
|
65 |
<input type="text" name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]"> |
|
66 |
</td> |
|
67 |
<td class="right"> |
|
68 |
<input type="text" name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]"> |
|
69 |
</td> |
|
70 |
<td class="right"> |
|
71 |
<input type="text" name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">% |
|
72 |
</td> |
|
73 |
<td> |
|
74 |
<input type="text" name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]"> |
|
75 |
</td> |
|
76 |
</tr> |
|
77 |
[% IF DUNNING_it.last %] |
|
78 |
[% SET rowcount = DUNNING_it.size + 1 %] |
|
79 |
[% END %] |
|
80 |
[% END %] |
|
81 |
|
|
82 |
[% UNLESS rowcount %][% SET rowcount = '1' %][% END %] |
|
83 |
<tr> |
|
84 |
<td class="center"> |
|
85 |
<input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]"> |
|
86 |
<input type="hidden" name="id_[% rowcount %]"> |
|
87 |
[% rowcount %] |
|
88 |
</td> |
|
89 |
<td> |
|
90 |
<input type="text" name="dunning_description_[% rowcount %]"> |
|
91 |
</td> |
|
92 |
<td class="center"> |
|
93 |
<input type="checkbox" name="active_[% rowcount %]" value="1" checked> |
|
94 |
</td> |
|
95 |
<td class="center"> |
|
96 |
<input type="checkbox" name="email_[% rowcount %]" value="1" checked> |
|
97 |
<button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')"> [% 'L' | $T8 %]</button> |
|
98 |
<input type="hidden" name="email_body_[% rowcount %]"> |
|
99 |
<input type="hidden" name="email_subject_[% rowcount %]"> |
|
100 |
<input type="hidden" name="email_attachment_[% rowcount %]"> |
|
101 |
</td> |
|
102 |
<!-- <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> --> |
|
103 |
<td class="center"> |
|
104 |
<input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked> |
|
105 |
</td> |
|
106 |
<td class="center"> |
|
107 |
<input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]> |
|
108 |
</td> |
|
109 |
<td class="right"> |
|
110 |
<input type="text" name="payment_terms_[% rowcount %]" size="3"> |
|
111 |
</td> |
|
112 |
<td class="right"> |
|
113 |
<input type="text" name="terms_[% rowcount %]" size="3"> |
|
114 |
</td> |
|
115 |
<td class="right"> |
|
116 |
<input type="text" name="fee_[% rowcount %]" size="5"> |
|
117 |
</td> |
|
118 |
<td class="right"> |
|
119 |
<input type="text" name="interest_rate_[% rowcount %]" size="4">% |
|
120 |
</td> |
|
121 |
<td> |
|
122 |
<input type="text" name="template_[% rowcount %]"> |
|
123 |
</td> |
|
124 |
</tr> |
|
125 |
</tbody> |
|
126 |
</table> |
|
127 |
</div><!-- /.wrapper --> |
|
79 | 128 |
|
80 |
<!-- <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> --> |
|
81 |
<td><input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked></td> |
|
82 |
<td><input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]></td> |
|
83 |
<td><input name="payment_terms_[% rowcount %]" size="3"></td> |
|
84 |
<td><input name="terms_[% rowcount %]" size="3"></td> |
|
85 |
<td><input name="fee_[% rowcount %]" size="5"></td> |
|
86 |
<td><input name="interest_rate_[% rowcount %]" size="4">%</td> |
|
87 |
<td><input name="template_[% rowcount %]"></td> |
|
88 |
</tr> |
|
89 |
</table> |
|
129 |
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]"> |
|
90 | 130 |
|
91 |
<input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
|
|
131 |
<div class="wrapper">
|
|
92 | 132 |
|
93 |
<hr size="3" noshade>
|
|
133 |
<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>
|
|
94 | 134 |
|
95 |
<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> |
|
96 | 135 |
|
97 |
<table> |
|
98 |
<tr> |
|
99 |
<th align="right">[% 'Account for fees' | $T8 %]</th> |
|
100 |
<td> |
|
101 |
<select name="AR_amount_fee"> |
|
102 |
[% 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> |
|
103 |
[% END %] |
|
104 |
</select> |
|
105 |
</td> |
|
106 |
</tr> |
|
136 |
<table class="tbl-horizontal"> |
|
137 |
<tbody> |
|
138 |
<tr> |
|
139 |
<th>[% 'Account for fees' | $T8 %]</th> |
|
140 |
<td> |
|
141 |
<select name="AR_amount_fee" class="wi-verywide"> |
|
142 |
[% FOREACH row = SELECT_AR_AMOUNT %] |
|
143 |
<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %] selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option> |
|
144 |
[% END %] |
|
145 |
</select> |
|
146 |
</td> |
|
147 |
</tr> |
|
148 |
<tr> |
|
149 |
<th>[% 'Account for interest' | $T8 %]</th> |
|
150 |
<td> |
|
151 |
<select name="AR_amount_interest" class="wi-verywide"> |
|
152 |
[% FOREACH row = SELECT_AR_AMOUNT %] |
|
153 |
<option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option> |
|
154 |
[% END %] |
|
155 |
</select> |
|
156 |
</td> |
|
157 |
</tr> |
|
158 |
<tr> |
|
159 |
<th>[% 'Record in' | $T8 %]</th> |
|
160 |
<td> |
|
161 |
<select name="AR" class="wi-verywide"> |
|
162 |
[% FOREACH row = SELECT_AR %] |
|
163 |
<option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option> |
|
164 |
[% END %] |
|
165 |
</select> |
|
166 |
</td> |
|
167 |
</tr> |
|
168 |
<tr> |
|
169 |
<th align="right">[% 'Dunning Creator' | $T8 %]</th> |
|
170 |
<td>[% L.select_tag('dunning_creator', [ [ 'current_employee', LxERP.t8('Current Employee') ],[ 'invoice_employee', LxERP.t8('Employee from the original invoice') ] ], default=dunning_creator) %] |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
</tbody> |
|
174 |
</table> |
|
107 | 175 |
|
108 |
<tr> |
|
109 |
<th align="right">[% 'Account for interest' | $T8 %]</th> |
|
110 |
<td> |
|
111 |
<select name="AR_amount_interest"> |
|
112 |
[% 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> |
|
113 |
[% END %] |
|
114 |
</select> |
|
115 |
</td> |
|
116 |
</tr> |
|
176 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
117 | 177 |
|
118 |
<tr> |
|
119 |
<th align="right">[% 'Record in' | $T8 %]</th> |
|
120 |
<td> |
|
121 |
<select name="AR"> |
|
122 |
[% 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> |
|
123 |
[% END %] |
|
124 |
</select> |
|
125 |
</td> |
|
126 |
</tr> |
|
127 |
<tr> |
|
128 |
<th align="right">[% 'Dunning Creator' | $T8 %]</th> |
|
129 |
<td>[% L.select_tag('dunning_creator', [ [ 'current_employee', LxERP.t8('Current Employee') ],[ 'invoice_employee', LxERP.t8('Employee from the original invoice') ] ], default=dunning_creator) %] |
|
130 |
</td> |
|
131 |
</tr> |
|
132 |
</table> |
|
178 |
</div><!-- /.wrapper --> |
|
133 | 179 |
|
134 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
135 |
</form> |
|
180 |
</form> |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/dunning/edit_config.html