7 <h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
9 <form method="post" action="cp.pl" id="form">
11 [% SET vc_id = vc _ '_id'
12 style = "width: 250px" %]
13 [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
14 [% L.hidden_tag('closedto', closedto) %]
15 [% L.hidden_tag('vc', vc) %]
16 [% L.hidden_tag('type', type) %]
17 [% L.hidden_tag('formname', type) %]
18 [% L.hidden_tag('queued', queued) %]
19 [% L.hidden_tag('arap', arap) %]
20 [% L.hidden_tag('ARAP', ARAP) %]
21 [% L.hidden_tag('openinvoices', openinvoices) %]
26 <table class="tbl-horizontal">
27 <colgroup><col class="wi-small"><col class="wi-verywide"></colgroup>
30 <th>[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]</th>
32 [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus wi-wide") %]
33 [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
37 <th>[% 'Address' | $T8 %]</th>
39 [% IF street || zipcode || city || country %]
40 [% IF street %]<span class="data wi-wide below">[% street | html %]</span>[% END %]
41 [% L.hidden_tag('street', street) %]
42 [% IF zipcode || city %]<span class="data wi-wide below">[% zipcode | html %] [% city | html %]</span>[% END %]
43 [% L.hidden_tag('zipcode', zipcode) %][% L.hidden_tag('city', city) %]
44 [% IF country %]<span class="data wi-wide below">[% country | html %]</span>[% END %]
45 [% L.hidden_tag('country', country) %]
47 <span class="data wi-wide"> </span>
52 <th>[% 'Memo' | $T8 %]</th>
53 <td><input type="text" name="memo" class="wi-wide" value="[% memo | html %]"></td>
56 <th>[% 'Invoice Number' | $T8 %]</th>
57 <td><input type="text" name="invnumber" class="wi-normal"></td>
60 <th>[% 'Account' | $T8 %]</th>
62 <select name="account" class="wi-verywide">[% selectaccount %]</select>
63 <input type=hidden name="selectaccount" value="[% selectaccount | html %]">
67 <th>[% 'Date' | $T8 %]</th>
68 <td><span class="wi-date">[% L.date_tag('datepaid', datepaid) %]</span></td>
71 <th>[% 'Currency' | $T8 %]</th>
73 <select name="currency" class="wi-small">[% selectcurrency %]</select>
74 <input type=hidden name="selectcurrency" value="[% selectcurrency | html %]">
75 <input type=hidden name="oldcurrency" value="[% oldcurrency | html %]">
78 [% IF currency != defaultcurrency %]
80 <th>[% 'Exchangerate' | $T8 %]</th>
82 <td><span class="plain-data wi-small">[% LxERP.format_amount(exchangerate) %]</span>[% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate)) %]</td>
84 <td>[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate), class='wi-small') %]</td>
89 <th>[% 'Source' | $T8 %]</th>
90 <td><input type="text" name="source" value="[% source | html %]" class="wi-small">
94 <th>[% 'Amount' | $T8 %]</th>
95 <td><span class="data wi-small numeric">[% LxERP.format_amount(amount, 2) %]</span></td>
100 [% IF openinvoices_other_currencies %]
101 <input type="hidden" name="openinvoices_other_currencies" value="[% openinvoices_other_currencies | html %]">
102 <p class="message message_info"><b>[% 'Note' | $T8 %]:</b><br>
104 [% LxERP.t8('There are #1 more open invoices for this customer with other currencies.', openinvoices_other_currencies) %]
106 [% LxERP.t8('There are #1 more open invoices from this vendor with other currencies.', openinvoices_other_currencies) %]