01983ab70649369d98c371553d984b52e82e081d
[kivitendo-erp.git] / templates / webpages / do / form_header_de.html
1 [% USE HTML %][% USE LxERP %]<body onload="on_load()">
2
3  <script type="text/javascript" src="js/show_form_details.js"></script>
4  <script type="text/javascript" src="js/show_history.js"></script>
5  <script type="text/javascript" src="js/show_vc_details.js"></script>
6  <script type="text/javascript" src="js/common.js"></script>
7  <script type="text/javascript" src="js/delivery_customer_selection.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/stock_in_out.js"></script>
11
12  <script type="text/javascript">
13   <!--
14       function on_load() {
15         [% IF onload %][% onload %];[% END %]
16         setupDateFormat('[% myconfig_dateformat %]', 'Falsches Datumsformat!');
17         setupPoints('[% myconfig_numberformat %]', 'Falsches Format');
18
19         [%- UNLESS delivered %]
20         Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_trigger" });
21         [%- END %]
22       }
23     -->
24  </script>
25
26  <style type="text/css">
27   .fixed_width {
28     width: 250px;
29   }
30  </style>
31
32  [%- IF vc == 'customer' %]
33  [%- SET vc = 'customer' %]
34  [%- SET the_vc_id = customer_id %]
35  [%- SET the_vc = customer %]
36  [%- SET the_oldvc = oldcustomer %]
37  [%- SET is_customer = '1' %]
38  [%- ELSE %]
39  [%- SET vc = 'vendor' %]
40  [%- SET the_vc_id = vendor_id %]
41  [%- SET the_vc = vendor %]
42  [%- SET the_oldvc = oldvendor %]
43  [%- SET is_customer = '0' %]
44  [%- END %]
45  [%- IF delivered %]
46  [%- SET RO = ' readonly' %]
47  [%- SET DISABLED = ' disabled' %]
48  [%- END %]
49
50  <div class="listtop">[% title %]</div>
51
52  [%- IF ERRORS && ERRORS.size %]
53  <p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
54  [%- END %]
55
56  <form method="post" name="do" action="do.pl">
57
58   <input type="hidden" name="action" value="[% HTML.escape(action) %]">
59   <input type="hidden" name="bcc" value="[% HTML.escape(bcc) %]">
60   <input type="hidden" name="business" value="[% HTML.escape(business) %]">
61   <input type="hidden" name="cc" value="[% HTML.escape(cc) %]">
62   <input type="hidden" name="closed" value="[% HTML.escape(closed) %]">
63   <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
64   <input type="hidden" name="discount" value="[% HTML.escape(discount) %]">
65   <input type="hidden" name="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
66   <input type="hidden" name="email" value="[% HTML.escape(email) %]">
67   <input type="hidden" name="emailed" value="[% HTML.escape(emailed) %]">
68   <input type="hidden" name="format" value="[% HTML.escape(format) %]">
69   <input type="hidden" name="formname" value="[% HTML.escape(formname) %]">
70   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
71   <input type="hidden" name="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
72   <input type="hidden" name="media" value="[% HTML.escape(media) %]">
73   <input type="hidden" name="message" value="[% HTML.escape(message) %]">
74   <input type="hidden" name="printed" value="[% HTML.escape(printed) %]">
75   <input type="hidden" name="proforma" value="[% HTML.escape(proforma) %]">
76   <input type="hidden" name="queued" value="[% HTML.escape(queued) %]">
77   <input type="hidden" name="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
78   <input type="hidden" name="shiptocity" value="[% HTML.escape(shiptocity) %]">
79   <input type="hidden" name="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
80   <input type="hidden" name="shiptocountry" value="[% HTML.escape(shiptocountry) %]">
81   <input type="hidden" name="shiptodepartment_1" value="[% HTML.escape(shiptodepartment_1) %]">
82   <input type="hidden" name="shiptodepartment_2" value="[% HTML.escape(shiptodepartment_2) %]">
83   <input type="hidden" name="shiptoemail" value="[% HTML.escape(shiptoemail) %]">
84   <input type="hidden" name="shiptofax" value="[% HTML.escape(shiptofax) %]">
85   <input type="hidden" name="shiptoname" value="[% HTML.escape(shiptoname) %]">
86   <input type="hidden" name="shiptophone" value="[% HTML.escape(shiptophone) %]">
87   <input type="hidden" name="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
88   <input type="hidden" name="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
89   <input type="hidden" name="subject" value="[% HTML.escape(subject) %]">
90   <input type="hidden" name="title" value="[% HTML.escape(title) %]">
91   <input type="hidden" name="type" value="[% HTML.escape(type) %]">
92   <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
93
94   <p>
95    <table width="100%">
96     <tr valign="top">
97      <td>
98       <table width="100%">
99        <tr>
100         <input type="hidden" name="[% vc %]_id" value="[% HTML.escape(the_vc_id) %]">
101         <input type="hidden" name="old[% vc %]" value="[% HTML.escape(the_oldvc) %]">
102         <th align="right">[% IF is_customer %]Kunde[% ELSE %]Lieferant[% END %]</th>
103         <td>
104          [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
105          <input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
106          [%- ELSE %]
107          <select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
108           [%- FOREACH row = ALL_VC %]
109           <option value="[% HTML.escape(row.value) %]" [% IF the_oldvc == row.value %] selected[% END %]>[% HTML.escape(row.name) %]</option>
110           [%- END %]
111          </select>
112          <input type="hidden" name="select[% vc %]" value="1">
113          [%- END %]
114          <input type="button" value="?" onclick="show_vc_details('[% vc %]')">
115         </td>
116
117         [%- IF ALL_CONTACTS.size %]
118         <tr>
119          <th align="right">Ansprechpartner</th>
120          <td>
121           [%- IF delivered %]
122           <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
123           [%- IF cp_id == row.cp_id %]
124           [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
125           [%- END %]
126           [%- ELSE %]
127           <select name="cp_id" class="fixed_width" >
128            <option></option>
129            [%- FOREACH row = ALL_CONTACTS %]
130            <option value="[% HTML.escape(row.cp_id) %]"[% IF cp_id == row.cp_id %] selected[% END %]>
131             [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
132            </option>
133            [%- END %]
134           </select>
135           [%- END %]
136          </td>
137         </tr>
138         [%- END %]
139
140         [%- IF ALL_SHIPTO.size %]
141         <tr>
142          <th align="right">Lieferadresse</th>
143          <td>
144           [%- IF delivered %]
145           <input type="hidden" name="shipto_id" value="[% HTML.escape(shipto_id) %]">
146           [%- FOREACH row = ALL_SHIPTO %]
147           [%- IF shipto_id == row.shipto_id %]
148           [%- HTML.escape(row.shiptoname) -%]
149           [%- IF row.shiptodepartment_1 %]; [% HTML.escape(row.shiptodepartment_1) -%][% END -%]
150           [%- IF row.shiptostreet %]; [% HTML.escape(row.shiptostreet) -%][% END -%]
151           [%- IF row.shiptocity %]; [% HTML.escape(row.shiptocity) -%][% END -%]
152           [%- END %]
153           [%- END %]
154
155           [%- ELSE %]
156           <select name="shipto_id" class="fixed_width" >
157            <option></option>
158            [%- FOREACH row = ALL_SHIPTO %]
159            <option value="[% HTML.escape(row.shipto_id) %]"[% IF shipto_id == row.shipto_id %] selected[% END %]>
160             [%- HTML.escape(row.shiptoname) -%]
161             [%- IF row.shiptodepartment_1 %]; [% HTML.escape(row.shiptodepartment_1) -%][% END -%]
162             [%- IF row.shiptostreet %]; [% HTML.escape(row.shiptostreet) -%][% END -%]
163             [%- IF row.shiptocity %]; [% HTML.escape(row.shiptocity) -%][% END -%]
164            </option>
165            [%- END %]
166           </select>
167           [%- END %]
168          </td>
169         </tr>
170         [%- END %]
171
172         [%- IF business %]
173         <tr>
174          <th align="right">[% IF is_customer %]Kundentyp[% ELSE %]Lieferantentyp[% END %]</th>
175          <td>[% HTML.escape(business) %]</td>
176         </tr>
177         [%- END %]
178
179         [%- IF max_dunning_level %]
180         <tr>
181          <th align="right">höchste Mahnstufe</th>
182          <td>
183           <b>[% HTML.escape(max_dunning_level) %]</b>; gemahnter Betrag:
184           <b>[% HTML.escape(LxERP.format_amount(dunning_amount, 2)) %]</b>
185          </td>
186         </tr>
187         [%- END %]
188        </tr>
189
190        [%- IF ALL_DEPARTMENTS.size %]
191        <tr>
192         <th align="right" nowrap>Abteilung</th>
193         <td colspan="3">
194          [%- IF delivered %]
195          <input type="hidden" name="department" value="[% HTML.escape(department) %]">
196          [%- FOREACH row = ALL_DEPARTMENTS %]
197          [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %]
198          [%- END %]
199          [%- ELSE %]
200          <select name="department" class="fixed_width">
201           <option></option>
202           [%- FOREACH row = ALL_DEPARTMENTS %]
203           <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
204           [%- END %]
205          </select>
206          [%- END %]
207         </td>
208        </tr>
209        [%- END %]
210
211        <tr>
212         <th align="right">Versandort</th>
213         <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
214        </tr>
215
216        <tr>
217         <th align="right">Transportmittel</th>
218         <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
219        </tr>
220
221        <tr>
222         <th align="right">Vorgangsbezeichnung</th>
223         <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"[% RO %]></td>
224        </tr>
225
226       </table>
227      </td>
228
229      <td align="right">
230       <table>
231
232        <tr>
233         <td colspan="2" align="center">
234          [%- IF delivered %]
235           [%- IF is_customer %]
236           ausgelagert
237           [%- ELSE %]
238           eingelagert
239           [%- END %]
240          [%- ELSE %]
241           [%- IF is_customer %]
242           noch nicht ausgelagert
243           [%- ELSE %]
244           noch nicht eingelagert
245           [%- END %]
246          [%- END %]
247          ;
248          [%- IF closed %]
249           Geschlossen
250          [%- ELSE %]
251           Offen
252          [%- END %]
253         </td>
254        </tr>
255
256        <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
257
258        <tr>
259         <th align="right">Bearbeiter</th>
260         <td>
261          [%- IF delivered %]
262          <input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
263          [%- FOREACH row = ALL_EMPLOYEES %]
264          [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
265          [%- END %]
266          [%- ELSE %]
267          <select name="employee_id">
268           [%- FOREACH row = ALL_EMPLOYEES %]
269           <option value="[% HTML.escape(row.id) %]"[% IF row.id == employee_id %] selected[% END %]>
270            [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
271           </option>
272           [%- END %]
273          </select>
274          [%- END %]
275         </td>
276        </tr>
277
278        [%- IF is_customer %]
279        [%- IF salesman_id %]
280        [%- SET the_salesman_id = salesman_id %]
281        [%- ELSE %]
282        [%- SET the_salesman_id = employee_id %]
283        [%- END %]
284        <tr>
285         <th align="right">Verkäufer/in</th>
286         <td>
287          [%- IF delivered %]
288          <input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
289          [%- FOREACH row = ALL_SALESMEN %]
290          [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
291          [%- END %]
292          [%- ELSE %]
293          <select name="salesman_id">
294           [%- FOREACH row = ALL_SALESMEN %]
295           <option value="[% HTML.escape(row.id) %]"[% IF row.id == the_salesman_id %] selected[% END %]>
296            [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
297           </option>
298           [%- END %]
299          </select>
300          [%- END %]
301         </td>
302        </tr>
303        [%- END %]
304
305        <tr>
306         <th width="70%" align="right" nowrap>Lieferscheinnummer</th>
307         <td><input name="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
308        </tr>
309
310        <tr>
311         <th width="70%" align="right" nowrap>Auftragsnummer</th>
312         <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
313        </tr>
314
315        <tr>
316         <th width="70%" align="right" nowrap>Bestellnummer des Kunden</th>
317         <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
318        </tr>
319
320        <tr>
321         <th align="right" nowrap>Lieferscheindatum</th>
322         <td nowrap>
323          <input name="transdate" id="transdate" size="11" title="[% HTML.escape(myconfig_dateformat) %]" value="[% HTML.escape(transdate) %]"
324                 onBlur="check_right_date_format(this)"[% RO %]>
325          [% UNLESS delivered %]<input type="button" name="b_transdate" id="transdate_trigger" value="?">[% END %]
326         </td>
327        </tr>
328
329        <tr>
330         <th width="70%" align="right" nowrap>Projektnummer</th>
331         <td>
332          [%- IF delivered %]
333          <input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
334          [%- FOREACH row = ALL_PROJECTS %]
335          [% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
336          [%- END %]
337          [%- ELSE %]
338          <select name="globalproject_id">
339           <option></option>
340           [%- FOREACH row = ALL_PROJECTS %]
341           <option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
342           [%- END %]
343          </select>
344          [%- END %]
345         </td>
346        </tr>
347       </table>
348      </td>
349     </tr>
350    </table>