[%- USE L %]
[%- USE HTML %]
[%- USE T8 %]
-[%- USE LxERP %]
-<body onload=[% onload %]>
-
-<form method=post action=cp.pl>
+[%- USE LxERP %][%- USE P -%]
+<form method="post" action="cp.pl" id="form">
+[% SET vc_id = vc _ '_id'
+ style = "width: 250px" %]
[% L.hidden_tag('defaultcurrency', defaultcurrency) %]
[% L.hidden_tag('closedto', closedto) %]
[% L.hidden_tag('vc', vc) %]
<h1>[% is_receipt ? LxERP.t8('Receipt') : LxERP.t8('Payment') %]</h1>
-<table width=100%>
+<table>
<tr valign=top>
<td>
<table>
<tr>
<th align=right>[% is_customer ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]</th>
- <td>[% vccontent %]</td>
- [% IF vc == 'customer' %]
- [% L.hidden_tag('selectcustomer', selectcustomer) %]
- [% L.hidden_tag('customer_id', customer_id) %]
- [% L.hidden_tag('oldcustomer', oldcustomer) %]
- [% ELSE %]
- [% L.hidden_tag('selectvendor', selectvendor) %]
- [% L.hidden_tag('vendor_id', vendor_id) %]
- [% L.hidden_tag('oldvendor', oldvendor) %]
- [% END %]
+ <td>
+ [% P.customer_vendor.picker(vc_id, $vc_id, type=vc, class="initial_focus", style=style) %]
+ [% P.hidden_tag("previous_" _ vc_id, $vc_id) %]
+ </td>
</tr>
<tr>
<th align=right>[% 'Invoice Number' | $T8 %]</th>
- <td><input name="invnumber" size="35"</td>
+ <td><input name="invnumber" size="35"></td>
</tr>
<tr valign=top>
<th align=right nowrap>[% 'Address' | $T8 %]</th>