c513eca9b9f348bfc3716bcb3fbf7776e8e3ffdb
[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         [% IF vc == 'customer' %]
39         <tr>
40           <th align=right>[% 'Customer Number' | $T8 %]</th>
41           <td><input name="customernumber" size="35"</td>
42         </tr>
43         [% END %]
44         <tr>
45           <th align=right>[% 'Invoice Number' | $T8 %]</th>
46           <td><input name="invnumber" size="35"</td>
47         </tr>
48         <tr valign=top>
49           <th align=right nowrap>[% 'Address' | $T8 %]</th>
50           <td colspan=2>
51             <table>
52               <tr>
53                 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
54               </tr>
55               <tr>
56                 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
57               </tr>
58               <tr>
59                 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
60               </tr>
61               <tr>
62                 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
63               </tr>
64             </table>
65           </td>
66         </tr>
67         <tr>
68           <th align=right>[% 'Memo' | $T8 %]</th>
69           <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
70         </tr>
71       </table>
72     </td>
73     <td align=right>
74       <table>
75         <tr>
76           <th align=right nowrap>[% 'Account' | $T8 %]</th>
77           <td colspan=3><select name=account>[% selectaccount %]</select>
78           <input type=hidden name=selectaccount value="[% selectaccount | html %]">
79           </td>
80         </tr>
81         <tr>
82           <th align=right nowrap>[% 'Date' | $T8 %]</th>
83           <td>[% L.date_tag('datepaid', datepaid) %]</td>
84         </tr>
85         <tr>
86           <th align=right nowrap>[% 'Currency' | $T8 %]</th>
87           <td><select name=currency>[% selectcurrency %]</select></td>
88           <input type=hidden name=selectcurrency value="[% selectcurrency | html %]">
89           <input type=hidden name=oldcurrency value="[% oldcurrency | html %]">
90         </tr>
91 [% IF currency != defaultcurrency %]
92         <tr>
93           <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
94 [% IF forex %]
95           <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
96 [%- ELSE %]
97           <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
98 [%- END %]
99         </tr>
100 [% END %]
101         <tr>
102           <th align=right nowrap>[% 'Source' | $T8 %]</th>
103           <td colspan=3><input name=source value="[% source | html %]" size=10></td>
104         </tr>
105         <tr>
106           <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
107           <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
108         </tr>
109       </table>
110     </td>
111   </tr>
112 </table>
113
114 [% IF openinvoices_other_currencies %]
115   <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
116    <b>[% 'Note' | $T8 %]:
117  [%- IF is_customer %]
118      [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
119  [%- ELSE %]
120      [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.',  openinvoices_other_currencies) %]
121  [%- END %]</b>
122 [% END %]