3 [%- SET follow_up_trans_info = invnumber _ ' (' _ vendor_name _ ')' %]
5 <script type="text/javascript" src="js/common.js"></script>
6 <script type="text/javascript" src="js/delivery_vendor_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">Lieferant</th>
35 [%- INCLUDE 'generic/multibox.html'
37 style = 'width: 250px',
44 onChange = "document.getElementById('update_button').click();" -%]
45 <input type="button" value="D" onclick="show_vc_details('[% vc | html %]')">
46 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
47 { script => 'ct.pl', column => 'name', selector => 'input[id="' _ vc _ '"]', params => { vc => vc } },
51 <input type="hidden" name="vendor_klass" value="[% HTML.escape(vendor_klass) %]">
52 <input type="hidden" name="vendor_id" value="[% HTML.escape(vendor_id) %]">
53 <input type="hidden" name="oldvendor" value="[% HTML.escape(oldvendor) %]">
54 <input type="hidden" name="selectvendor" value="[% HTML.escape(selectvendor) %]">
56 [%- IF ALL_CONTACTS.size %]
58 <th align="right">Ansprechpartner</th>
60 [%- INCLUDE 'generic/multibox.html'
62 style = 'width: 250px',
65 label_sub = 'contact_labels',
71 <td align="right">Kreditlimit</td>
73 [% LxERP.format_amount(creditlimit, 0, '0') %]; Rest
74 <span class="plus[% IF is_credit_remaining_negativ %]0[% ELSE %]1[% END %]">[% LxERP.format_amount(creditremaining,0 ,'0') %]</span>
78 <th align="right" nowrap>Buchen auf</th>
79 <td colspan="3"><select name="AP" style="width:250px;">[% selectAP %]</select></td>
80 <input type="hidden" name="selectAP" value="[% selectAP %]">
83 <th align="right">Steuersatz</th>
85 [%- INCLUDE 'generic/multibox.html'
87 style = 'width: 250px'
90 readonly = (id ? 1 : 0)
91 label_key = 'description' -%]
94 <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
97 [%- IF all_departments %]
99 <th align="right" nowrap>Abteilung</th>
101 [%- INCLUDE 'generic/multibox.html'
102 name = 'department_id',
103 style = 'width: 250px',
104 DATA = all_departments,
106 label_sub = 'department_labels',
113 <th align="right">Währung</th>
114 <td>[% currencies %]</td>
117 <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
118 <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
119 [%- IF show_exchangerate %]
121 <th align="right">Wechselkurs</th>
124 [% LxERP.format_amount(exchangerate, 2) %]
126 <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
133 <td align="right" valign="top">
136 <th align="right">Bearbeiter</th>
138 [%- INCLUDE 'generic/multibox.html'
139 name = 'employee_id',
140 DATA = ALL_EMPLOYEES,
142 label_sub = 'sales_employee_labels' -%]
146 [%- IF is_type_credit_note %]
148 <th align="right" nowrap>Gutschriftnummer</th>
149 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
152 <th align="right">Gutschriftdatum</th>
154 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
155 <input type="button" name="invdate_button" id="trigger1" value="?">
160 <th align="right" nowrap>Rechnungsnummer</th>
161 <td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
164 <th align="right">Rechnungsdatum</th>
166 <input name="invdate" id="invdate" size="11" title="[% dateformat %]" value="[% invdate %]" onBlur="check_right_date_format(this)">
167 <input type="button" name="invdate_button" id="trigger1" value="?">
171 <th align="right">Fälligkeitsdatum</th>
173 <input name="duedate" id="duedate" size="11" title="[% dateformat %]" value="[% duedate %]" onBlur="check_right_date_format(this)">
174 <input type="button" name="duedate_button" id="trigger2" value="?">
180 <th align="right" nowrap>Auftragsnummer</th>
181 <td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
184 <th align="right" nowrap>Auftragsdatum</th>
185 <td><input name="orddate" id="orddate" size="11" title="[% dateformat %]" value="[% orddate %]" onBlur="check_right_date_format(this)">
186 <input type="button" name="b_orddate" id="trigger_orddate" value="?"></td>
189 <th align="right" nowrap>Angebotsdatum</th>
190 <td><input name="quodate" id="quodate" size="11" title="[% dateformat %]" value="[% quodate %]" onBlur="check_right_date_format(this)">
191 <input type="button" name="b_quodate" id="trigger_quodate" value="?"></td>
194 <th align="right" nowrap>Projektnummer</th>
196 [%- INCLUDE 'generic/multibox.html'
197 name = 'globalproject_id',
200 label_key = 'projectnumber',
202 onChange = "document.getElementById('update_button').click();" -%]
215 <script type="text/javascript" src="js/show_form_details.js"></script>
216 <script type="text/javascript" src="js/show_vc_details.js"></script>
217 <script type="text/javascript" src="js/show_history.js"></script>
218 <script type="text/javascript">
220 Calendar.setup({ inputField : "invdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
221 Calendar.setup({ inputField : "duedate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
222 Calendar.setup({ inputField : "orddate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_orddate" });
223 Calendar.setup({ inputField : "quodate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_quodate" });
224 $('document').ready(function(){
225 [% IF creditwarning != '' %]
226 alert('Kreditlimit überschritten!');
230 setupDateFormat('[% dateformat %]', 'Falsches Datumsformat!');
231 setupPoints('[% numberformat %]', 'Falsches Format');
236 <input type="hidden" name="webdav" value="[% webdav %]">