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