]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/dunning/edit_config.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / dunning / edit_config.html
1 [% USE T8 %]
2 [% USE HTML %]
3 [% USE LxERP %]
4 [% USE L %]
5 <h1>[% title %]</h1>
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
12 <div class="wrapper">
13 <table class="tbl-list wi-moderate">
14   <thead>
15     <tr>
16       <th class="center">[% 'Dunning Level' | $T8 %]</th>
17       <th>[% 'Dunning Description' | $T8 %]</th>
18       <th class="center">[% 'Active?' | $T8 %]</th>
19       <th class="center">[% 'eMail Send?' | $T8 %]</th>
20 <!--     <th>[% 'Auto Send?' | $T8 %]</th>  -->
21       <th class="center">[% 'Create invoice?' | $T8 %]</th>
22       <th class="center">[% 'Include original Invoices?' | $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>
28     </tr>
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="center">
58         <input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]>
59       </td>
60       <td class="right">
61         <input type="text" name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]">
62       </td>
63       <td class="right">
64         <input type="text" name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]">
65       </td>
66       <td class="right">
67         <input type="text" name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]">
68       </td>
69       <td class="right">
70         <input type="text" name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%
71       </td>
72       <td>
73         <input type="text" name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]">
74       </td>
75     </tr>
76       [% IF DUNNING_it.last %]
77         [% SET rowcount = DUNNING_it.size + 1 %]
78       [% END %]
79     [% END %]
80
81     [% UNLESS rowcount %][% SET rowcount = '1' %][% END %]
82     <tr>
83       <td class="center">
84         <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
85         <input type="hidden" name="id_[% rowcount %]">
86         [% rowcount %]
87       </td>
88       <td>
89         <input type="text" name="dunning_description_[% rowcount %]">
90       </td>
91       <td class="center">
92         <input type="checkbox" name="active_[% rowcount %]" value="1" checked>
93       </td>
94       <td class="center">
95         <input type="checkbox" name="email_[% rowcount %]" value="1" checked>
96         <button type="button" onclick="set_email_window('email_subject_[% rowcount %]', 'email_body_[% rowcount %]', 'email_attachment_[% rowcount %]')"> [% 'L' | $T8 %]</button>
97         <input type="hidden" name="email_body_[% rowcount %]">
98         <input type="hidden" name="email_subject_[% rowcount %]">
99         <input type="hidden" name="email_attachment_[% rowcount %]">
100       </td>
101   <!--     <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
102       <td class="center">
103         <input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked>
104       </td>
105       <td class="center">
106         <input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]>
107       </td>
108       <td class="right">
109         <input type="text" name="payment_terms_[% rowcount %]" size="3">
110       </td>
111       <td class="right">
112         <input type="text" name="terms_[% rowcount %]" size="3">
113       </td>
114       <td class="right">
115         <input type="text" name="fee_[% rowcount %]" size="5">
116       </td>
117       <td class="right">
118         <input type="text" name="interest_rate_[% rowcount %]" size="4">%
119       </td>
120       <td>
121         <input type="text" name="template_[% rowcount %]">
122       </td>
123     </tr>
124   </tbody>
125 </table>
126 </div><!-- /.wrapper -->
127
128 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
129
130 <div class="wrapper">
131
132 <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>
133
134
135 <table class="tbl-horizontal">
136   <tbody>
137     <tr>
138       <th>[% 'Account for fees' | $T8 %]</th>
139       <td>
140         <select name="AR_amount_fee" class="wi-verywide">
141           [% FOREACH row = SELECT_AR_AMOUNT %]
142           <option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_fee_selected %] selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
143           [% END %]
144         </select>
145       </td>
146     </tr>
147     <tr>
148       <th>[% 'Account for interest' | $T8 %]</th>
149       <td>
150         <select name="AR_amount_interest" class="wi-verywide">
151           [% FOREACH row = SELECT_AR_AMOUNT %]
152           <option value="[% HTML.escape(row.id) %]" [% IF row.AR_amount_interest_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
153           [% END %]
154         </select>
155       </td>
156     </tr>
157     <tr>
158       <th>[% 'Record in' | $T8 %]</th>
159       <td>
160         <select name="AR" class="wi-verywide">
161           [% FOREACH row = SELECT_AR %]
162           <option value="[% HTML.escape(row.id) %]" [% IF row.AR_selected %]selected[% END %]>[% HTML.escape(row.accno) %]--[% HTML.escape(row.description) %]</option>
163           [% END %]
164         </select>
165       </td>
166     </tr>
167     <tr>
168       <th align="right">[% 'Dunning Creator' | $T8 %]</th>
169       <td>[% L.select_tag('dunning_creator', [ [ 'current_employee', LxERP.t8('Current Employee') ],[ 'invoice_employee', LxERP.t8('Employee from the original invoice') ]  ], default=dunning_creator) %]
170       </td>
171     </tr>
172     <tr>
173       <th align="right">[% 'Original Invoice' | $T8 %]</th>
174       <td>[% L.select_tag('dunning_original_invoice_creation_mode', [
175                  [ 'create_new', LxERP.t8('Create new record.') ],
176                  [ 'use_last_created_or_create_new',
177                    LxERP.t8('Use last created record or create new.') ],
178               ], default=dunning_original_invoice_creation_mode) %]
179       </td>
180     </tr>
181   </tbody>
182 </table>
183
184 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
185
186 </div><!-- /.wrapper -->
187
188 </form>