[%- USE T8 %]
[%- USE LxERP %]
-<body onLoad="[% onload %]">
-
<form method=post name="arledger" action="[% script %]">
[% L.hidden_tag('id', id) %]
[% L.hidden_tag('follow_up_trans_info_1', follow_up_trans_info) %]
[% L.hidden_tag('follow_up_rowcount', 1) %]
+<h1>[% title | html %]</h1>
+
[%- IF saved_message %]<p>[% saved_message | html %]</p>[% END %]
+<div class="tabwidget">
+ <ul>
+ <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
+[%- IF id %]
+ <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=Invoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
+[%- END %]
+ </ul>
+
+<div id="ui-tabs-basic-data">
<table width=100%>
- <tr class=listtop>
- <th class=listtop>[% title | html %]</th>
- </tr>
- <tr height="5"></tr>
<tr valign=top>
<td>
<table width=100%>
<th align="right" nowrap>[% 'Customer' | $T8 %]</th>
<td colspan=3>
[%- IF selectcustomer %]
- <select name="customer" onchange="document.getElementById('update_button').click();">[% selectcustomer %]</select>
+ <select id='customer' name="customer" onchange="document.getElementById('update_button').click();">[% selectcustomer %]</select>
[%- ELSE %]
- <input name=customer value="[% customer | html %]" size=35>
+ <input id='customer' name=customer value="[% customer | html %]" size=35>
[%- END %]
<input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')"></td>
[% L.hidden_tag('selectcustomer', selectcustomer) %]
[% L.hidden_tag('oldcustomer', oldcustomer) %]
- [% L.hidden_tag('oldcustomer', oldcustomer) %]
+ [% L.hidden_tag('customer_id', customer_id) %]
[% L.hidden_tag('terms', terms) %]
</tr>
<tr>
[%- END %]
<tr>
<td align=right>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
- <th align=left nowrap>[% 'Tax Included' | $T8 %]</th>
+ <th align="left" nowrap><label for="taxincluded">[% 'Tax Included' | $T8 %]</label></th>
+ </tr>
+ <tr>
+ <td align="right">[% L.checkbox_tag('direct_debit', checked=direct_debit) %]</td>
+ <th align="left" nowrap><label for="direct_debit">[% 'direct debit' | $T8 %]</label></th>
</tr>
</table>
</td>
</tr>
<tr>
<th align=right nowrap>[% 'Project Number' | $T8 %]</th>
- <td>[% L.select_tag('globalproject_id', L.options_for_select(ALL_PROJECTS, title='projectnumber', default=globalproject_id, with_empty=1)) %]</td>
+ <td>[% L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = 1) %]</td>
</tr>
</table>
</td>
<tr>
<td>[% row.selectAR_amount %]</td>
<td>[% L.input_tag('amount_' _ loop.count, LxERP.format_amount(row.amount, 2)) %]</td>
- <td>[% L.input_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_tax(row.tax, 2) | html %]</td>
- <td>[% row.tax %]</td>
- <td>[% L.select_tag('project_id_' _ loop.count, L.options_for_select(ALL_PROJECTS, title='projectnumber', default=row.project_id, with_empty=1)) %]</td>
+ <td>[% L.hidden_tag('tax_' _ loop.count, LxERP.format_tax(row.tax, 2)) %][% LxERP.format_amount(row.tax, 2) | html %]</td>
+ <td>[% row.taxchart %]</td>
+ <td>[% L.select_tag('project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.project_id, with_empty = 1) %]</td>
</tr>
[%- END %]
<tr>
<th align=left width=1%>[% 'Notes' | $T8 %]</th>
<td align=left><textarea name=notes rows="[% rows %]" cols=50 wrap=soft>[% notes | html %]</textarea></td>
+
+ <th align=left width=1%>[% 'Notes for customer' | $T8 %]</th>
+ <td align=left><textarea name=intnotes rows="[% rows %]" cols=50 wrap=soft readonly>[% intnotes | html %]</textarea></td>
</tr>
</table>
</td>
</td>
<td>
[%- IF row.changeable %]
- [% L.select_tag('paid_project_id_' _ loop.count, L.options_for_select(ALL_PROJECTS, title='projectnumber', default=row.paid_project_id, with_empty=1)) %]
+ [% L.select_tag('paid_project_id_' _ loop.count, ALL_PROJECTS, title_key = 'projectnumber', default = row.paid_project_id, with_empty=1) %]
[%- ELSE %]
[% project_labels.${row.paid_project_id} | html %]
<input type=hidden name="paid_project_id_[% loop.count %]" value='[% row.paid_project_id %]'>
</table>
</td>
</tr>
- <tr>
- <td><hr size=3 noshade></td>
- </tr>
</table>
+</div>
+</div>