7 [%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %]
8 <script type="text/javascript" src="js/common.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 <p>[% saved_message %]</p>
18 [%- FOREACH key = HIDDENS %]
19 <input type="hidden" name="[% HTML.escape(key) %]" value="[% HTML.escape($key) %]">
21 <input type="hidden" name="follow_up_trans_id_1" value="[% id %]">
22 <input type="hidden" name="follow_up_trans_type_1" value="sales_invoice">
23 <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
24 <input type="hidden" name="follow_up_rowcount" value="1">
25 <input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
27 [%- INCLUDE 'common/flash.html' %]
28 [%- INCLUDE 'generic/set_longdescription.html' %]
30 <div id="ir_tabs" class="tabwidget">
32 <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
33 [%- IF INSTANCE_CONF.get_webdav %]
34 <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
37 <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
38 <li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li>
42 <div id="ui-tabs-basic-data">
48 <th align="right">[% 'Vendor' | $T8 %]</th>
50 [%- INCLUDE 'generic/multibox.html'
53 style = 'width: 250px',
54 class = 'initial_focus',
61 onChange = "document.getElementById('update_button').click();" -%]
62 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% vc | html %]')">
64 <input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
65 <input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
66 <input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]">
67 <input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]">
69 [%- IF ALL_CONTACTS.size %]
71 <th align="right">[% 'Contact Person' | $T8 %]</th>
73 [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style = 'width: 250px') %]
78 <td align="right">[% 'Credit Limit' | $T8 %]</td>
80 [% LxERP.format_amount(creditlimit, 0, '0') %]; [% 'Remaining' | $T8 %]
81 <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
84 [%- IF invoice_obj.sepa_exports.as_list.size %]
86 <th align="right">[% LxERP.t8("SEPA exports") %]</th>
88 [% FOREACH export = invoice_obj.sepa_exports.as_list %]
89 <a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a>
90 [% UNLESS loop.last %], [% END %]
97 <th align="right">[% 'Vendor type' | $T8 %]</th>
98 <td>[% business %]; [% 'Trade Discount' | $T8 %] [% LxERP.format_amount(tradediscount * 100) %] %</td>
102 <th align="right" nowrap>[% 'Record in' | $T8 %]</th>
103 <td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td>
104 <input type="hidden" name="selectAP" value="[% selectAP %]">
107 <th align="right">[% 'Steuersatz' | $T8 %]</th>
109 [%- INCLUDE 'generic/multibox.html'
111 style = 'width: 250px'
114 readonly = (id ? 1 : 0)
115 label_key = 'description' -%]
118 <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
121 [%- IF all_departments %]
123 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
125 [%- INCLUDE 'generic/multibox.html'
126 name = 'department_id',
127 style = 'width: 250px',
128 DATA = all_departments,
130 label_sub = 'department_labels',
137 <th align="right">[% 'Currency' | $T8 %]</th>
138 <td>[% currencies %]</td>
141 <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
142 <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
143 [%- IF show_exchangerate %]
145 <th align="right">[% 'Exchangerate' | $T8 %]</th>
148 [% LxERP.format_amount(exchangerate, 2) %]
150 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
157 <td align="right" valign="top">
160 <th align="right">[% 'Employee' | $T8 %]</th>
161 <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]</td>
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">[% 'Credit Note Date' | $T8 %]</th>
171 <td>[% L.date_tag('invdate', invdate) %]</td>
175 <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
176 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
179 <th align="right">[% 'Invoice Date' | $T8 %]</th>
180 <td>[% L.date_tag('invdate', invdate, onChange='kivi.SalesPurchase.set_duedate_on_reference_date_change("invdate")') %]</td>
183 <th align="right">[% 'Due Date' | $T8 %]</th>
185 <span id="duedate_container"[% IF payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% L.date_tag('duedate', duedate) %]</span>
186 <span id="duedate_fixed"[% IF !payment_terms_obj.auto_calculation %] style="display:none"[% END %]>[% HTML.escape(duedate) %]</span>
192 <th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
193 <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
196 <th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
197 <td>[% L.date_tag('orddate', orddate) %]</td>
200 <th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
201 <td>[% L.date_tag('quodate', quodate) %]</td>
204 <th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
206 [%- INCLUDE 'generic/multibox.html'
207 name = 'globalproject_id',
210 label_key = 'projectnumber',
212 onChange = "document.getElementById('update_button').click();" -%]
225 <script type="text/javascript" src="js/show_form_details.js"></script>
226 <script type="text/javascript" src="js/show_vc_details.js"></script>
227 <script type="text/javascript" src="js/show_history.js"></script>
228 <script type="text/javascript">
230 $('document').ready(function(){
231 [% IF creditwarning != '' %]
232 alert('[% 'Credit Limit exceeded!!!' | $T8 %]');
238 <input type="hidden" name="webdav" value="[% webdav | html %]">