5 [%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %]
7 <script type="text/javascript" src="js/common.js"></script>
8 <script type="text/javascript" src="js/vendor_selection.js"></script>
9 <script type="text/javascript" src="js/calculate_qty.js"></script>
10 <script type="text/javascript" src="js/follow_up.js"></script>
11 <script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
13 <form method="post" name="invoice" action="[% script %]">
15 <p>[% saved_message %]</p>
17 [%- FOREACH key = HIDDENS %]
18 <input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
20 <input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
21 <input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
22 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
23 <input type="hidden" name="follow_up_rowcount" value="1">
25 <p><div class="listtop" width="100%">[% title %]</div></p>
27 [%- INCLUDE 'common/flash.html' %]
34 <th align="right">[% 'Vendor' | $T8 %]</th>
36 [%- INCLUDE 'generic/multibox.html'
38 style = 'width: 250px',
45 onChange = "document.getElementById('update_button').click();" -%]
46 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% vc | html %]')">
48 <input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
49 <input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
50 <input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]">
51 <input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]">
53 [%- IF ALL_CONTACTS.size %]
55 <th align="right">[% 'Contact Person' | $T8 %]</th>
57 [%- INCLUDE 'generic/multibox.html'
59 style = 'width: 250px',
62 label_sub = 'contact_labels',
68 <td align="right">[% 'Credit Limit' | $T8 %]</td>
70 [% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
71 <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
75 <th align="right" nowrap>[% 'Record in' | $T8 %]</th>
76 <td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td>
77 <input type="hidden" name="selectAP" value="[% selectAP %]">
80 <th align="right">[% 'Steuersatz' | $T8 %]</th>
82 [%- INCLUDE 'generic/multibox.html'
84 style = 'width: 250px'
87 readonly = (id ? 1 : 0)
88 label_key = 'description' -%]
91 <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
94 [%- IF all_departments %]
96 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
98 [%- INCLUDE 'generic/multibox.html'
99 name = 'department_id',
100 style = 'width: 250px',
101 DATA = all_departments,
103 label_sub = 'department_labels',
110 <th align="right">[% 'Currency' | $T8 %]</th>
111 <td>[% currencies %]</td>
114 <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
115 <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
116 [%- IF show_exchangerate %]
118 <th align="right">[% 'Exchangerate' | $T8 %]</th>
121 [% LxERP.format_amount(exchangerate, 2) %]
123 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
130 <td align="right" valign="top">
133 <th align="right">[% 'Employee' | $T8 %]</th>
135 [%- INCLUDE 'generic/multibox.html'
136 name = 'employee_id',
137 DATA = ALL_EMPLOYEES,
139 label_sub = 'sales_employee_labels' -%]
143 [%- IF is_type_credit_note %]
145 <th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th>
146 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
149 <th align="right">[% 'Credit Note Date' | $T8 %]</th>
150 <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate(this)') %]</td>
154 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
155 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
158 <th align="right">[% 'Invoice Date' | $T8 %]</th>
159 <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate(this)') %]</td>
162 <th align="right">[% 'Due Date' | $T8 %]</th>
163 <td>[% L.date_tag('duedate', duedate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
168 <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
169 <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
172 <th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
173 <td>[% L.date_tag('orddate', orddate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
176 <th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
177 <td>[% L.date_tag('quodate', quodate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
180 <th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
182 [%- INCLUDE 'generic/multibox.html'
183 name = 'globalproject_id',
186 label_key = 'projectnumber',
188 onChange = "document.getElementById('update_button').click();" -%]
201 <script type="text/javascript" src="js/show_form_details.js"></script>
202 <script type="text/javascript" src="js/show_vc_details.js"></script>
203 <script type="text/javascript" src="js/show_history.js"></script>
204 <script type="text/javascript">
206 $('document').ready(function(){
207 [% IF creditwarning != '' %]
208 alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
212 setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
213 setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
215 function set_duedate() {
217 url: 'ir.pl?action=get_duedate_vendor',
219 invdate: $('#invdate').val(),
220 vendor_id: $('input[name="vendor_id"]').val(),
221 old_duedate: $('#duedate').val(),
224 success: function (data) { $('#duedate').val(data); }
230 <input type="hidden" name="webdav" value="[% webdav %]">