1. Variable umbenannt, in der die IDs aus OE zwischengespeichert werden, aus denen...
[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="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
64   <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
65   <input type="hidden" name="discount" value="[% HTML.escape(discount) %]">
66   <input type="hidden" name="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
67   <input type="hidden" name="email" value="[% HTML.escape(email) %]">
68   <input type="hidden" name="emailed" value="[% HTML.escape(emailed) %]">
69   <input type="hidden" name="format" value="[% HTML.escape(format) %]">
70   <input type="hidden" name="formname" value="[% HTML.escape(formname) %]">
71   <input type="hidden" name="id" value="[% HTML.escape(id) %]">
72   <input type="hidden" name="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
73   <input type="hidden" name="media" value="[% HTML.escape(media) %]">
74   <input type="hidden" name="message" value="[% HTML.escape(message) %]">
75   <input type="hidden" name="printed" value="[% HTML.escape(printed) %]">
76   <input type="hidden" name="proforma" value="[% HTML.escape(proforma) %]">
77   <input type="hidden" name="queued" value="[% HTML.escape(queued) %]">
78   <input type="hidden" name="saved_donumber" value="[% HTML.escape(saved_donumber) %]">
79   <input type="hidden" name="shiptocity" value="[% HTML.escape(shiptocity) %]">
80   <input type="hidden" name="shiptocontact" value="[% HTML.escape(shiptocontact) %]">
81   <input type="hidden" name="shiptocountry" value="[% HTML.escape(shiptocountry) %]">
82   <input type="hidden" name="shiptodepartment_1" value="[% HTML.escape(shiptodepartment_1) %]">
83   <input type="hidden" name="shiptodepartment_2" value="[% HTML.escape(shiptodepartment_2) %]">
84   <input type="hidden" name="shiptoemail" value="[% HTML.escape(shiptoemail) %]">
85   <input type="hidden" name="shiptofax" value="[% HTML.escape(shiptofax) %]">
86   <input type="hidden" name="shiptoname" value="[% HTML.escape(shiptoname) %]">
87   <input type="hidden" name="shiptophone" value="[% HTML.escape(shiptophone) %]">
88   <input type="hidden" name="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
89   <input type="hidden" name="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
90   <input type="hidden" name="subject" value="[% HTML.escape(subject) %]">
91   <input type="hidden" name="title" value="[% HTML.escape(title) %]">
92   <input type="hidden" name="type" value="[% HTML.escape(type) %]">
93   <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
94
95   <p>
96    <table width="100%">
97     <tr valign="top">
98      <td>
99       <table width="100%">
100        <tr>
101         <input type="hidden" name="[% vc %]_id" value="[% HTML.escape(the_vc_id) %]">
102         <input type="hidden" name="old[% vc %]" value="[% HTML.escape(the_oldvc) %]">
103         <th align="right">[% IF is_customer %]Kunde[% ELSE %]Lieferant[% END %]</th>
104         <td>
105          [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
106          <input type="text" value="[% HTML.escape(oldvcname) %]" name="[% HTML.escape(vc) %]"[% RO %]>
107          [%- ELSE %]
108          <select name="[% vc %]" class="fixed_width" onchange="document.do.update_button.click();"[% RO %]>
109           [%- FOREACH row = ALL_VC %]
110           <option value="[% HTML.escape(row.value) %]" [% IF the_oldvc == row.value %] selected[% END %]>[% HTML.escape(row.name) %]</option>
111           [%- END %]
112          </select>
113          <input type="hidden" name="select[% vc %]" value="1">
114          [%- END %]
115          <input type="button" value="?" onclick="show_vc_details('[% vc %]')">
116         </td>
117
118         [%- IF ALL_CONTACTS.size %]
119         <tr>
120          <th align="right">Ansprechpartner</th>
121          <td>
122           [%- IF delivered %]
123           <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
124           [%- IF cp_id == row.cp_id %]
125           [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
126           [%- END %]
127           [%- ELSE %]
128           <select name="cp_id" class="fixed_width" >
129            <option></option>
130            [%- FOREACH row = ALL_CONTACTS %]
131            <option value="[% HTML.escape(row.cp_id) %]"[% IF cp_id == row.cp_id %] selected[% END %]>
132             [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
133            </option>
134            [%- END %]
135           </select>
136           [%- END %]
137          </td>
138         </tr>
139         [%- END %]
140
141         [%- IF ALL_SHIPTO.size %]
142         <tr>
143          <th align="right">Lieferadresse</th>
144          <td>
145           [%- IF delivered %]
146           <input type="hidden" name="shipto_id" value="[% HTML.escape(shipto_id) %]">
147           [%- FOREACH row = ALL_SHIPTO %]
148           [%- IF shipto_id == row.shipto_id %]
149           [%- HTML.escape(row.shiptoname) -%]
150           [%- IF row.shiptodepartment_1 %]; [% HTML.escape(row.shiptodepartment_1) -%][% END -%]
151           [%- IF row.shiptostreet %]; [% HTML.escape(row.shiptostreet) -%][% END -%]
152           [%- IF row.shiptocity %]; [% HTML.escape(row.shiptocity) -%][% END -%]
153           [%- END %]
154           [%- END %]
155
156           [%- ELSE %]
157           <select name="shipto_id" class="fixed_width" >
158            <option></option>
159            [%- FOREACH row = ALL_SHIPTO %]
160            <option value="[% HTML.escape(row.shipto_id) %]"[% IF shipto_id == row.shipto_id %] selected[% END %]>
161             [%- HTML.escape(row.shiptoname) -%]
162             [%- IF row.shiptodepartment_1 %]; [% HTML.escape(row.shiptodepartment_1) -%][% END -%]
163             [%- IF row.shiptostreet %]; [% HTML.escape(row.shiptostreet) -%][% END -%]
164             [%- IF row.shiptocity %]; [% HTML.escape(row.shiptocity) -%][% END -%]
165            </option>
166            [%- END %]
167           </select>
168           [%- END %]
169          </td>
170         </tr>
171         [%- END %]
172
173         [%- IF business %]
174         <tr>
175          <th align="right">[% IF is_customer %]Kundentyp[% ELSE %]Lieferantentyp[% END %]</th>
176          <td>[% HTML.escape(business) %]</td>
177         </tr>
178         [%- END %]
179
180         [%- IF max_dunning_level %]
181         <tr>
182          <th align="right">höchste Mahnstufe</th>
183          <td>
184           <b>[% HTML.escape(max_dunning_level) %]</b>; gemahnter Betrag:
185           <b>[% HTML.escape(LxERP.format_amount(dunning_amount, 2)) %]</b>
186          </td>
187         </tr>
188         [%- END %]
189        </tr>
190
191        [%- IF ALL_DEPARTMENTS.size %]
192        <tr>
193         <th align="right" nowrap>Abteilung</th>
194         <td colspan="3">
195          [%- IF delivered %]
196          <input type="hidden" name="department" value="[% HTML.escape(department) %]">
197          [%- FOREACH row = ALL_DEPARTMENTS %]
198          [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %]
199          [%- END %]
200          [%- ELSE %]
201          <select name="department" class="fixed_width">
202           <option></option>
203           [%- FOREACH row = ALL_DEPARTMENTS %]
204           <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
205           [%- END %]
206          </select>
207          [%- END %]
208         </td>
209        </tr>
210        [%- END %]
211
212        <tr>
213         <th align="right">Versandort</th>
214         <td colspan="3"><input name="shippingpoint" size="35" value="[% HTML.escape(shippingpoint) %]"[% RO %]></td>
215        </tr>
216
217        <tr>
218         <th align="right">Transportmittel</th>
219         <td colspan="3"><input name="shipvia" size="35" value="[% HTML.escape(shipvia) %]"[% RO %]></td>
220        </tr>
221
222        <tr>
223         <th align="right">Vorgangsbezeichnung</th>
224         <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"[% RO %]></td>
225        </tr>
226
227       </table>
228      </td>
229
230      <td align="right">
231       <table>
232
233        <tr>
234         <td colspan="2" align="center">
235          [%- IF delivered %]
236           [%- IF is_customer %]
237           ausgelagert
238           [%- ELSE %]
239           eingelagert
240           [%- END %]
241          [%- ELSE %]
242           [%- IF is_customer %]
243           noch nicht ausgelagert
244           [%- ELSE %]
245           noch nicht eingelagert
246           [%- END %]
247          [%- END %]
248          ;
249          [%- IF closed %]
250           Geschlossen
251          [%- ELSE %]
252           Offen
253          [%- END %]
254         </td>
255        </tr>
256
257        <input type="hidden" name="delivered" value="[% HTML.escape(delivered) %]">
258
259        <tr>
260         <th align="right">Bearbeiter</th>
261         <td>
262          [%- IF delivered %]
263          <input type="hidden" name="employee_id" value="[% HTML.escape(employee_id) %]">
264          [%- FOREACH row = ALL_EMPLOYEES %]
265          [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
266          [%- END %]
267          [%- ELSE %]
268          <select name="employee_id">
269           [%- FOREACH row = ALL_EMPLOYEES %]
270           <option value="[% HTML.escape(row.id) %]"[% IF row.id == employee_id %] selected[% END %]>
271            [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
272           </option>
273           [%- END %]
274          </select>
275          [%- END %]
276         </td>
277        </tr>
278
279        [%- IF is_customer %]
280        [%- IF salesman_id %]
281        [%- SET the_salesman_id = salesman_id %]
282        [%- ELSE %]
283        [%- SET the_salesman_id = employee_id %]
284        [%- END %]
285        <tr>
286         <th align="right">Verkäufer/in</th>
287         <td>
288          [%- IF delivered %]
289          <input type="hidden" name="salesman_id" value="[% HTML.escape(salesman_id) %]">
290          [%- FOREACH row = ALL_SALESMEN %]
291          [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
292          [%- END %]
293          [%- ELSE %]
294          <select name="salesman_id">
295           [%- FOREACH row = ALL_SALESMEN %]
296           <option value="[% HTML.escape(row.id) %]"[% IF row.id == the_salesman_id %] selected[% END %]>
297            [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
298           </option>
299           [%- END %]
300          </select>
301          [%- END %]
302         </td>
303        </tr>
304        [%- END %]
305
306        <tr>
307         <th width="70%" align="right" nowrap>Lieferscheinnummer</th>
308         <td><input name="donumber" size="11" value="[% HTML.escape(donumber) %]"[% RO %]></td>
309        </tr>
310
311        <tr>
312         <th width="70%" align="right" nowrap>Auftragsnummer</th>
313         <td><input name="ordnumber" size="11" value="[% HTML.escape(ordnumber) %]"[% RO %]></td>
314        </tr>
315
316        <tr>
317         <th width="70%" align="right" nowrap>Bestellnummer des Kunden</th>
318         <td><input name="cusordnumber" size="11" value="[% HTML.escape(cusordnumber) %]"[% RO %]></td>
319        </tr>
320
321        <tr>
322         <th align="right" nowrap>Lieferscheindatum</th>
323         <td nowrap>
324          <input name="transdate" id="transdate" size="11" title="[% HTML.escape(myconfig_dateformat) %]" value="[% HTML.escape(transdate) %]"
325                 onBlur="check_right_date_format(this)"[% RO %]>
326          [% UNLESS delivered %]<input type="button" name="b_transdate" id="transdate_trigger" value="?">[% END %]
327         </td>
328        </tr>
329
330        <tr>
331         <th width="70%" align="right" nowrap>Projektnummer</th>
332         <td>
333          [%- IF delivered %]
334          <input type="hidden" name="globalproject_id" value="[% HTML.escape(globalproject_id) %]">
335          [%- FOREACH row = ALL_PROJECTS %]
336          [% IF globalproject_id == row.id %][% HTML.escape(row.projectnumber) %][% END %]
337          [%- END %]
338          [%- ELSE %]
339          <select name="globalproject_id">
340           <option></option>
341           [%- FOREACH row = ALL_PROJECTS %]
342           <option value="[% HTML.escape(row.id) %]"[% IF globalproject_id == row.id %] selected[% END %]>[% HTML.escape(row.projectnumber) %]</option>
343           [%- END %]
344          </select>
345          [%- END %]
346         </td>
347        </tr>
348       </table>
349      </td>
350     </tr>
351    </table>