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) %]
39 <th align=right>[% 'Invoice Number' | $T8 %]</th>
40 <td><input name="invnumber" size="35"</td>
43 <th align=right nowrap>[% 'Address' | $T8 %]</th>
47 <td>[% street | html %][% L.hidden_tag('street', street) %]</td>
50 <td>[% zipcode | html %][% L.hidden_tag('zipcode', zipcode) %]</td>
53 <td>[% city | html %][% L.hidden_tag('city', city) %]</td>
56 <td>[% country | html %][% L.hidden_tag('country', country) %]</td>
62 <th align=right>[% 'Memo' | $T8 %]</th>
63 <td colspan=2><input name="memo" size=30 value="[% memo | html %]"></td>
70 <th align=right nowrap>[% 'Account' | $T8 %]</th>
71 <td colspan=3><select name=account>[% selectaccount %]</select>
72 <input type=hidden name=selectaccount value="[% selectaccount %]">
76 <th align=right nowrap>[% 'Date' | $T8 %]</th>
77 <td>[% L.date_tag('datepaid', datepaid) %]</td>
80 <th align=right nowrap>[% 'Currency' | $T8 %]</th>
81 <td><select name=currency>[% selectcurrency %]</select></td>
82 <input type=hidden name=selectcurrency value="[% selectcurrency | html %]">
83 <input type=hidden name=oldcurrency value="[% oldcurrency | html %]">
85 [% IF currency != defaultcurrency %]
87 <th align=right nowrap>[% 'Exchangerate' | $T8 %]</th>
89 <td colspan=3>[% LxERP.format_amount(exchangerate) %][% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
91 <td colspan=3>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), size=10) %]</td>
96 <th align=right nowrap>[% 'Source' | $T8 %]</th>
97 <td colspan=3><input name=source value="[% source | html %]" size=10></td>
100 <th align="right" nowrap>[% 'Amount' | $T8 %]</th>
101 <td colspan="3">[% LxERP.format_amount(amount, 2) %]</td>
108 [% IF openinvoices_other_currencies %]
109 <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
110 <b>[% 'Note' | $T8 %]:
111 [%- IF is_customer %]
112 [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
114 [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.', openinvoices_other_currencies) %]