5 [%- SET follow_up_trans_info = invnumber _ ' (' _ customer_name _ ')' %]
7 <script type="text/javascript" src="js/common.js"></script>
8 <script type="text/javascript" src="js/delivery_customer_selection.js"></script>
9 <script type="text/javascript" src="js/vendor_selection.js"></script>
10 <script type="text/javascript" src="js/calculate_qty.js"></script>
11 <script type="text/javascript" src="js/follow_up.js"></script>
12 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
14 <form method="post" name="invoice" action="[% script %]">
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 <p><div class="listtop" width="100%">[% title %]</div></p>
26 <p>[% saved_message %]</p>
28 [%- PROCESS 'common/flash.html' %]
35 <th align="right">[% 'Customer' | $T8 %]</th>
37 [%- INCLUDE 'generic/multibox.html'
39 style = 'width: 250px',
46 onChange = "document.getElementById('update_button').click();" -%]
47 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% HTML.escape(vc) %]')">
49 <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
50 <input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
51 <input type="hidden" name="oldcustomer" value="[% HTML.escape(oldcustomer) %]">
52 <input type="hidden" name="selectcustomer" value="[% HTML.escape(selectcustomer) %]">
54 [%- IF ALL_CONTACTS.size %]
56 <th align="right">[% 'Contact Person' | $T8 %]</th>
58 [% L.select_tag('cp_id', L.options_for_select(ALL_CONTACTS, default=cp_id, value='cp_id', title_sub=\contact_labels, with_empty=1), style='width: 250px') %]
62 [%- IF ALL_SHIPTO.size %]
64 <th align="right">[% 'Shipping Address' | $T8 %]</th>
66 [% L.select_tag('shipto_id', L.options_for_select(ALL_SHIPTO, default=shipto_id, value='shipto_id', title_sub=\shipto_labels, with_empty=1), style='width: 250px', onChange="document.getElementById('update_button').click();") %]
71 <td align="right">[% 'Credit Limit' | $T8 %]</td>
73 [% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
74 <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
77 [%- IF max_dunning_level %]
79 <th align="right">[% 'Max. Dunning Level' | $T8 %]:</th>
81 <b>[% max_dunning_level %]</b>; [% 'Dunning Amount' | $T8 %]: <b>[% LxERP.format_amount(dunning_amount,2) %]</b>
87 <th align="right">[% 'Customer type' | $T8 %]</th>
88 <td>[% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %</td>
92 <th align="right" nowrap>[% 'Record in' | $T8 %]</th>
93 <td colspan="3"><select name="AR" style="width:250px;">[% selectAR %]</select></td>
94 <input type="hidden" name="selectAR" value="[% selectAR %]">
97 <th align="right">[% 'Steuersatz' | $T8 %]</th>
99 [% L.select_tag('taxzone_id', L.options_for_select(ALL_TAXZONES, default=taxzone_id, title='description'), readonly=(id ? 1 : 0), style='width: 250px') %]
102 <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
105 [%- IF all_departments %]
107 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
109 [% L.select_tag('department_id', L.options_for_select(all_departments, default=department_id, title_sub=\department_labels, with_empty=1), style='width:250px') %]
115 <th align="right">[% 'Currency' | $T8 %]</th>
116 <td>[% currencies %]</td>
119 <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
120 <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
121 [%- IF show_exchangerate %]
123 <th align="right">[% 'Exchangerate' | $T8 %]</th>
126 [% LxERP.format_amount(exchangerate, 2) %]
128 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
134 <th align="right" nowrap>[% 'Shipping Point' | $T8 %]</th>
135 <td colspan="3"><input size='35' name="shippingpoint" value="[% HTML.escape(shippingpoint) %]"></td>
138 <th align="right" nowrap>[% 'Ship via' | $T8 %]</th>
139 <td colspan="3"><input size='35' name="shipvia" value="[% HTML.escape(shipvia) %]"></td>
142 <th align="right">[% 'Transaction description' | $T8 %]</th>
143 <td colspan="3"><input size='35' name="transaction_description" value="[% HTML.escape(transaction_description) %]"></td>
147 <td align="right" valign="top">
150 <th align="right">[% 'Employee' | $T8 %]</th>
152 [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title_sub=\sales_employee_labels)) %]
155 [%- IF ALL_SALESMEN.size %]
157 <th align="right">[% 'Salesman' | $T8 %]</th>
159 [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_sub=\sales_employee_labels)) %]
164 [%- IF is_type_credit_note %]
166 <th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th>
167 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
170 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
171 <td colspan="3"><input size='11' name="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td>
174 <th align="right">[% 'Credit Note Date' | $T8 %]</th>
176 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
177 <input type="button" name="invdate_button" id="trigger1" value="[% 'button' | $T8 %]">
182 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
183 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
186 <th align="right">[% 'Invoice Date' | $T8 %]</th>
188 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
189 <input type="button" name="invdate_button" id="trigger1" value="[% 'button' | $T8 %]">
193 <th align="right">[% 'Due Date' | $T8 %]</th>
195 <input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)">
196 <input type="button" name="duedate_button" id="trigger2" value="[% 'button' | $T8 %]">
200 <th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
201 <td colspan="3"><input size='11' name="donumber" value="[% HTML.escape(donumber) %]"></td>
204 <th align="right">[% 'Delivery Date' | $T8 %]</th>
206 <input name="deliverydate" id="deliverydate" size="11" title="[% dateformat %]" value="[% deliverydate %]" onBlur="check_right_date_format(this)">
207 <input type="button" name="deliverydate_button" id="trigger3" value="[% 'button' | $T8 %]">
213 <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
214 <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
217 <th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
218 <td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)">
219 <input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
222 <th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th>
223 <td colspan="3"><input size='11' name="quonumber" value="[% HTML.escape(quonumber) %]"></td>
226 <th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
227 <td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)">
228 <input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
231 <th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
232 <td colspan="3"><input size='11' name="cusordnumber" value="[% HTML.escape(cusordnumber) %]"></td>
235 <th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
237 [%- L.select_tag('globalproject_id', L.options_for_select(ALL_PROJECTS, title='projectnumber', default=globalproject_id, with_empty='1'), onChange="document.getElementById('update_button').click();") %]
250 <script type="text/javascript" src="js/show_form_details.js"></script>
251 <script type="text/javascript" src="js/show_vc_details.js"></script>
252 <script type="text/javascript" src="js/show_history.js"></script>
253 <script type="text/javascript">
255 Calendar.setup({ inputField : "invdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
256 [% IF !is_type_credit_note %]
257 Calendar.setup({ inputField : "duedate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
258 Calendar.setup({ inputField : "deliverydate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger3" });
260 Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" });
261 Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" });
262 $('document').ready(function(){
263 [% IF resubmit && is_format_html %]
264 window.open('about:blank','Beleg');
265 document.invoice.target = 'Beleg';
266 document.invoice.submit();
268 document.invoice.submit();
269 [% ELSIF creditwarning != '' %]
270 alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
274 setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
275 setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
280 <input type="hidden" name="webdav" value="[% webdav %]">