Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / cp / form_header.html
1 [%- USE L %]
2 [%- USE HTML %]
3 [%- USE T8 %]
4 [%- USE LxERP %][%- USE P -%]
5 <form method="post" action="cp.pl" id="form">
6
7 [% SET vc_id = vc _ '_id'
8        style = "width: 250px" %]
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>
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>
28            [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus", style=style) %]
29            [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
30           </td>
31         </tr>
32         <tr>
33           <th align=right>[% 'Invoice Number' | $T8 %]</th>
34           <td><input name="invnumber" size="35"></td>
35         </tr>
36         <tr valign=top>
37           <th align=right nowrap>[% 'Address' | $T8 %]</th>
38           <td colspan=2>
39             <table>
40               <tr>
41                 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
42               </tr>
43               <tr>
44                 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
45               </tr>
46               <tr>
47                 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
48               </tr>
49               <tr>
50                 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
51               </tr>
52             </table>
53           </td>
54         </tr>
55         <tr>
56           <th align=right>[% 'Memo' | $T8 %]</th>
57           <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
58         </tr>
59       </table>
60     </td>
61     <td align=right>
62       <table>
63         <tr>
64           <th align=right nowrap>[% 'Account' | $T8 %]</th>
65           <td colspan=3><select name=account>[% selectaccount %]</select>
66           <input type=hidden name=selectaccount value="[% selectaccount | html %]">
67           </td>
68         </tr>
69         <tr>
70           <th align=right nowrap>[% 'Date' | $T8 %]</th>
71           <td>[% L.date_tag('datepaid', datepaid) %]</td>
72         </tr>
73         <tr>
74           <th align=right nowrap>[% 'Currency' | $T8 %]</th>
75           <td><select name=currency>[% selectcurrency %]</select></td>
76           <input type=hidden name=selectcurrency value="[% selectcurrency | html %]">
77           <input type=hidden name=oldcurrency value="[% oldcurrency | html %]">
78         </tr>
79 [% IF currency != defaultcurrency %]
80         <tr>
81           <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
82 [% IF forex %]
83           <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
84 [%- ELSE %]
85           <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
86 [%- END %]
87         </tr>
88 [% END %]
89         <tr>
90           <th align=right nowrap>[% 'Source' | $T8 %]</th>
91           <td colspan=3><input name=source value="[% source | html %]" size=10></td>
92         </tr>
93         <tr>
94           <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
95           <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
96         </tr>
97       </table>
98     </td>
99   </tr>
100 </table>
101
102 [% IF openinvoices_other_currencies %]
103   <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
104    <b>[% 'Note' | $T8 %]:
105  [%- IF is_customer %]
106      [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
107  [%- ELSE %]
108      [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.',  openinvoices_other_currencies) %]
109  [%- END %]</b>
110 [% END %]