3 [%- SET follow_up_trans_info = invnumber _ ' (' _ customer_name _ ')' %]
5 <script type="text/javascript" src="js/common.js"></script>
6 <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
7 <script type="text/javascript" src="js/vendor_selection.js"></script>
8 <script type="text/javascript" src="js/calculate_qty.js"></script>
9 <script type="text/javascript" src="js/follow_up.js"></script>
10 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
12 <form method="post" name="invoice" action="[% script %]">
14 <p>[% saved_message %]</p>
16 [%- FOREACH key = HIDDENS %]
17 <input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
19 <input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
20 <input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
21 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
22 <input type="hidden" name="follow_up_rowcount" value="1">
24 <input type="hidden" name="lizenzen" value="[% lizenzen %]">
26 <p><div class="listtop" width="100%">[% title %]</div></p>
33 <th align="right">Customer</th>
35 [%- INCLUDE 'generic/multibox.html'
37 style = 'width: 250px',
44 onChange = "document.getElementById('update_button').click();" -%]
45 <input type="button" value="Details (one letter abbreviation)" onclick="show_vc_details('[% HTML.escape(vc) %]')">
46 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
47 { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
51 <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
52 <input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
53 <input type="hidden" name="oldcustomer" value="[% HTML.escape(oldcustomer) %]">
54 <input type="hidden" name="selectcustomer" value="[% HTML.escape(selectcustomer) %]">
56 [%- IF ALL_CONTACTS.size %]
58 <th align="right">Contact Person</th>
60 [%- INCLUDE 'generic/multibox.html'
62 style = 'width: 250px',
65 label_sub = 'contact_labels',
70 [%- IF ALL_SHIPTO.size %]
72 <th align="right">Shipping Address</th>
74 [%- INCLUDE 'generic/multibox.html'
76 style = 'width: 250px',
79 label_sub = 'shipto_labels',
81 onChange = "document.getElementById('update_button').click();" -%]
86 <td align="right">Credit Limit</td>
88 [% LxERP.format_amount(creditlimit, 0, '0') %]; Remaining
89 <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
92 [%- IF max_dunning_level %]
94 <th align="right">Max. Dunning Level:</th>
96 <b>[% max_dunning_level %]</b>; Dunning Amount: <b>[% LxERP.format_amount(dunning_amount,2) %]</b>
102 <th align="right">Customer type</th>
103 <td>[% business %]; Trade Discount [% LxERP.format_amount(tradediscount * 100) %] %</td>
107 <th align="right" nowrap>Record in</th>
108 <td colspan="3"><select name="AR" style="width:250px;">[% selectAR %]</select></td>
109 <input type="hidden" name="selectAR" value="[% selectAR %]">
112 <th align="right">Steuersatz</th>
114 [%- INCLUDE 'generic/multibox.html'
119 readonly = (id ? 1 : 0)
120 label_key = 'description' -%]
123 <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
126 [%- IF all_departments %]
128 <th align="right" nowrap>Department</th>
130 [%- INCLUDE 'generic/multibox.html'
131 name = 'department_id',
132 style = 'width: 250px',
133 DATA = all_departments,
135 label_sub = 'department_labels',
142 <th align="right">Currency</th>
143 <td>[% currencies %]</td>
146 <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
147 <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
148 [%- IF show_exchangerate %]
150 <th align="right">Exchangerate</th>
153 [% LxERP.format_amount(exchangerate, 2) %]
155 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
161 <th align="right" nowrap>Shipping Point</th>
162 <td colspan="3"><input size='35' name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td>
165 <th align="right" nowrap>Ship via</th>
166 <td colspan="3"><input size='35' name="shipvia" value="[% HTML.escape(shipvia) %]"></td>
169 <th align="right">Transaction description</th>
170 <td colspan="3"><input size='35' name="transaction_description" value="[% HTML.escape(transaction_description) %]"></td>
174 <td align="right" valign="top">
177 <th align="right">Employee</th>
179 [%- INCLUDE 'generic/multibox.html'
180 name = 'employee_id',
181 DATA = ALL_EMPLOYEES,
183 label_sub = 'sales_employee_labels' -%]
186 [%- IF ALL_SALESMEN.size %]
188 <th align="right">Salesman</th>
190 [%- INCLUDE 'generic/multibox.html'
191 name = 'salesman_id',
192 default = salesman_id ? salesman_id : employee_id,
195 label_sub = 'sales_employee_labels' -%]
200 [%- IF is_type_credit_note %]
202 <th align="right" nowrap>Credit Note Number</th>
203 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
206 <th align="right">Credit Note Date</th>
208 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
209 <input type="button" name="invdate_button" id="trigger1" value="button">
214 <th align="right" nowrap>Invoice Number</th>
215 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
218 <th align="right">Invoice Date</th>
220 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
221 <input type="button" name="invdate_button" id="trigger1" value="button">
225 <th align="right">Due Date</th>
227 <input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)">
228 <input type="button" name="duedate_button" id="trigger2" value="button">
232 <th align="right" nowrap>Delivery Order Number</th>
233 <td colspan="3"><input size='11' name="donumber" value="[% HTML.escape(donumber) %]"></td>
236 <th align="right">Delivery Date</th>
238 <input name="deliverydate" id="deliverydate" size="11" title="[% dateformat %]" value="[% deliverydate %]" onBlur="check_right_date_format(this)">
239 <input type="button" name="deliverydate_button" id="trigger3" value="button">
245 <th align="right" nowrap>Order Number</th>
246 <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
249 <th align="right" nowrap>Order Date</th>
250 <td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)">
251 <input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
254 <th align="right" nowrap>Quotation Number</th>
255 <td colspan="3"><input size='11' name="quonumber" value="[% HTML.escape(quonumber) %]"></td>
258 <th align="right" nowrap>Quotation Date</th>
259 <td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)">
260 <input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
263 <th align="right" nowrap>Customer Order Number</th>
264 <td colspan="3"><input size='11' name="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td>
267 <th align="right" nowrap>Project Number</th>
269 [%- INCLUDE 'generic/multibox.html'
270 name = 'globalproject_id',
273 label_key = 'projectnumber',
275 onChange = "document.getElementById('update_button').click();" -%]
288 <script type="text/javascript" src="js/show_form_details.js"></script>
289 <script type="text/javascript" src="js/show_vc_details.js"></script>
290 <script type="text/javascript" src="js/show_history.js"></script>
291 <script type="text/javascript">
293 Calendar.setup({ inputField : "invdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
294 [% IF !is_type_credit_note %]
295 Calendar.setup({ inputField : "duedate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
296 Calendar.setup({ inputField : "deliverydate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
298 Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" });
299 Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" });
300 $('document').ready(function(){
301 [% IF resubmit && is_format_html %]
302 window.open('about:blank','Beleg');
303 document.invoice.target = 'Beleg';
304 document.invoice.submit();
306 document.invoice.submit();
307 [% ELSIF creditwarning != '' %]
308 alert('Credit Limit exceeded!!!');
312 setupDateFormat('[% dateformat %]', 'Falsches Datumsformat!');
313 setupPoints('[% numberformat %]', 'wrongformat');
318 <input type="hidden" name="webdav" value="[% webdav %]">