5 <body onload=[% onload %]>
7 <form method=post action=cp.pl>
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) %]
19 <h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
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) %]
33 [% L.hidden_tag('selectvendor', selectvendor) %]
34 [% L.hidden_tag('vendor_id', vendor_id) %]
35 [% L.hidden_tag('oldvendor', oldvendor) %]
38 [% IF vc == 'customer' %]
40 <th align=right>[% 'Customer Number' | $T8 %]</th>
41 <td><input name="customernumber" size="35"</td>
45 <th align=right>[% 'Invoice Number' | $T8 %]</th>
46 <td><input name="invnumber" size="35"</td>
49 <th align=right nowrap>[% 'Address' | $T8 %]</th>
53 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
56 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
59 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
62 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
68 <th align=right>[% 'Memo' | $T8 %]</th>
69 <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
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 %]">
82 <th align=right nowrap>[% 'Date' | $T8 %]</th>
83 <td>[% L.date_tag('datepaid', datepaid) %]</td>
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 %]">
91 [% IF currency != defaultcurrency %]
93 <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
95 <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
97 <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
102 <th align=right nowrap>[% 'Source' | $T8 %]</th>
103 <td colspan=3><input name=source value="[% source | html %]" size=10></td>
106 <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
107 <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
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) %]
120 [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.', openinvoices_other_currencies) %]