Bugfix 1771 - Zahlungsausgang: Lieferant wird nicht ausgewählt, wenn Name 2 Leerzeich...
[kivitendo-erp.git] / templates / webpages / cp / form_header.html
1 [%- USE L %]
2 [%- USE HTML %]
3 [%- USE T8 %]
4 [%- USE LxERP %]
5 <body onload=[% onload %]>
6
7 <form method=post action=cp.pl>
8
9 [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
10 [% L.hidden_tag('closedto', closedto) %]
11 [% L.hidden_tag('vc', vc) %]
12 [% L.hidden_tag('type', type) %]
13 [% L.hidden_tag('formname', type) %]
14 [% L.hidden_tag('queued', queued) %]
15 [% L.hidden_tag('arap', arap) %]
16 [% L.hidden_tag('ARAP', ARAP) %]
17 [% L.hidden_tag('openinvoices', openinvoices) %]
18
19 <h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
20
21 <table width=100%>
22   <tr valign=top>
23     <td>
24       <table>
25         <tr>
26           <th align=right>[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]</th>
27           <td>[% vccontent %]</td>
28           [% IF vc == 'customer' %]
29            [% L.hidden_tag('selectcustomer', selectcustomer) %]
30            [% L.hidden_tag('customer_id', customer_id) %]
31            [% L.hidden_tag('oldcustomer', oldcustomer) %]
32           [% ELSE %]
33            [% L.hidden_tag('selectvendor', selectvendor) %]
34            [% L.hidden_tag('vendor_id', vendor_id) %]
35            [% L.hidden_tag('oldvendor', oldvendor) %]
36           [% END %]
37         </tr>
38         <tr>
39           <th align=right>[% 'Invoice Number' | $T8 %]</th>
40           <td><input name="invnumber" size="35"</td>
41         </tr>
42         <tr valign=top>
43           <th align=right nowrap>[% 'Address' | $T8 %]</th>
44           <td colspan=2>
45             <table>
46               <tr>
47                 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
48               </tr>
49               <tr>
50                 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
51               </tr>
52               <tr>
53                 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
54               </tr>
55               <tr>
56                 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
57               </tr>
58             </table>
59           </td>
60         </tr>
61         <tr>
62           <th align=right>[% 'Memo' | $T8 %]</th>
63           <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
64         </tr>
65       </table>
66     </td>
67     <td align=right>
68       <table>
69         <tr>
70           <th align=right nowrap>[% 'Account' | $T8 %]</th>
71           <td colspan=3><select name=account>[% selectaccount %]</select>
72           <input type=hidden name=selectaccount value="[% selectaccount | html %]">
73           </td>
74         </tr>
75         <tr>
76           <th align=right nowrap>[% 'Date' | $T8 %]</th>
77           <td>[% L.date_tag('datepaid', datepaid) %]</td>
78         </tr>
79         <tr>
80           <th align=right nowrap>[% 'Currency' | $T8 %]</th>
81           <td><select name=currency>[% selectcurrency %]</select></td>
82           <input type=hidden name=selectcurrency value="[% selectcurrency | html %]">
83           <input type=hidden name=oldcurrency value="[% oldcurrency | html %]">
84         </tr>
85 [% IF currency != defaultcurrency %]
86         <tr>
87           <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
88 [% IF forex %]
89           <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
90 [%- ELSE %]
91           <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
92 [%- END %]
93         </tr>
94 [% END %]
95         <tr>
96           <th align=right nowrap>[% 'Source' | $T8 %]</th>
97           <td colspan=3><input name=source value="[% source | html %]" size=10></td>
98         </tr>
99         <tr>
100           <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
101           <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
102         </tr>
103       </table>
104     </td>
105   </tr>
106 </table>
107
108 [% IF openinvoices_other_currencies %]
109   <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
110    <b>[% 'Note' | $T8 %]:
111  [%- IF is_customer %]
112      [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
113  [%- ELSE %]
114      [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.',  openinvoices_other_currencies) %]
115  [%- END %]</b>
116 [% END %]