7 <script type="text/javascript" src="js/common.js"></script>
8 <script type="text/javascript" src="js/dunning.js"></script>
10 <form method="post" action="dn.pl" name="Form" id="form">
13 <table class="tbl-list wi-moderate">
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>
32 [% USE DUNNING_it = Iterator(DUNNING) %]
33 [% FOREACH row = DUNNING_it %]
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 %]
41 <input type="text" name="dunning_description_[% DUNNING_it.count %]" value="[% HTML.escape(row.dunning_description) %]">
44 <input type="checkbox" name="active_[% DUNNING_it.count %]" value="1" [% IF row.active %]checked[% END %]>
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) %]">
53 <!-- <td><input type="checkbox" name="auto_[% DUNNING_it.count %]" value="1" [% IF row.auto %]checked[% END %]></td> -->
55 <input type="checkbox" name="create_invoices_for_fees_[% DUNNING_it.count %]" value="1"[% IF row.create_invoices_for_fees %] checked[% END %]>
58 <input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]>
61 <input type="text" name="payment_terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.payment_terms) %]">
64 <input type="text" name="terms_[% DUNNING_it.count %]" size="3" value="[% HTML.escape(row.terms) %]">
67 <input type="text" name="fee_[% DUNNING_it.count %]" size="5" value="[% HTML.escape(row.fee) %]">
70 <input type="text" name="interest_rate_[% DUNNING_it.count %]" size="4" value="[% HTML.escape(row.interest_rate) %]">%
73 <input type="text" name="template_[% DUNNING_it.count %]" value="[% HTML.escape(row.template) %]">
76 [% IF DUNNING_it.last %]
77 [% SET rowcount = DUNNING_it.size + 1 %]
81 [% UNLESS rowcount %][% SET rowcount = '1' %][% END %]
84 <input type="hidden" name="dunning_level_[% rowcount %]" value="[% rowcount %]">
85 <input type="hidden" name="id_[% rowcount %]">
89 <input type="text" name="dunning_description_[% rowcount %]">
92 <input type="checkbox" name="active_[% rowcount %]" value="1" checked>
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 %]">
101 <!-- <td><input type="checkbox" name="auto_[% rowcount %]" value="1" checked></td> -->
103 <input type="checkbox" name="create_invoices_for_fees_[% rowcount %]" value="1" checked>
106 <input type="checkbox" name="print_original_invoice_[% DUNNING_it.count %]" value="1" [% IF row.print_original_invoice %]checked[% END %]>
109 <input type="text" name="payment_terms_[% rowcount %]" size="3">
112 <input type="text" name="terms_[% rowcount %]" size="3">
115 <input type="text" name="fee_[% rowcount %]" size="5">
118 <input type="text" name="interest_rate_[% rowcount %]" size="4">%
121 <input type="text" name="template_[% rowcount %]">
126 </div><!-- /.wrapper -->
128 <input type="hidden" name="rowcount" value="[% HTML.escape(rowcount) %]">
130 <div class="wrapper">
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>
135 <table class="tbl-horizontal">
138 <th>[% 'Account for fees' | $T8 %]</th>
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>
148 <th>[% 'Account for interest' | $T8 %]</th>
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>
158 <th>[% 'Record in' | $T8 %]</th>
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>
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) %]
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) %]
184 <input type="hidden" name="callback" value="[% HTML.escape(callback) %]">
186 </div><!-- /.wrapper -->