5 <form method=post action=cp.pl>
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) %]
17 <h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
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) %]
31 [% L.hidden_tag('selectvendor', selectvendor) %]
32 [% L.hidden_tag('vendor_id', vendor_id) %]
33 [% L.hidden_tag('oldvendor', oldvendor) %]
36 [% IF vc == 'customer' %]
38 <th align=right>[% 'Customer Number' | $T8 %]</th>
39 <td><input name="customernumber" size="35"</td>
43 <th align=right>[% 'Invoice Number' | $T8 %]</th>
44 <td><input name="invnumber" size="35"</td>
47 <th align=right nowrap>[% 'Address' | $T8 %]</th>
51 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
54 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
57 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
60 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
66 <th align=right>[% 'Memo' | $T8 %]</th>
67 <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
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 %]">
80 <th align=right nowrap>[% 'Date' | $T8 %]</th>
81 <td>[% L.date_tag('datepaid', datepaid) %]</td>
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 %]">
89 [% IF currency != defaultcurrency %]
91 <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
93 <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
95 <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
100 <th align=right nowrap>[% 'Source' | $T8 %]</th>
101 <td colspan=3><input name=source value="[% source | html %]" size=10></td>
104 <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
105 <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
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) %]
118 [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.', openinvoices_other_currencies) %]