[% IF SELF.cv == 'customer' %]
<tr>
<th align="right">[% 'Salesman' | $T8 %]</th>
- <td>[% L.select_tag('order.employee_id',
- SELF.all_employees,
+ <td>[% L.select_tag('order.salesman_id',
+ SELF.all_salesmen,
default=(SELF.order.salesman_id ? SELF.order.salesman_id : SELF.current_employee_id),
title_key='safe_name') %]</td>
</tr>
<tr>
<td>
- <div id="row_table_scroll_id" style="overflow-y: auto; height: 45vh">
+ <div id="row_table_scroll_id" style="overflow-y: auto; height: 25vh">
<table id="row_table_id" width="100%">
<thead>
<tr class="listheading">
<td align="right">
<table>
- [%- IF NOT taxincluded %]
- <tr>
+ <tr id="taxincluded_row_id" [%- IF !SELF.taxes.size %]style="display:none"[%- END %]>
+ <td align=right colspan="2">
+ <label for="order.taxincluded"><b>[% 'Tax Included' | $T8 %]</b></label>
+ [% L.yes_no_tag('order.taxincluded', SELF.order.taxincluded, class='recalc') %]
+ </td>
+ </tr>
+
+ <tr id="subtotal_row_id" [%- IF SELF.order.taxincluded %]style="display:none"[%- END %]>
<th align="right">[%- 'Subtotal' | $T8 %]</th>
<td align="right">
[%- L.div_tag(SELF.order.netamount_as_number, id='netamount_id') %]
</td>
</tr>
- [%- END %]
[%- FOREACH tax = SELF.taxes %]
- [%- PROCESS order/tabs/_tax_row.html TAX=tax %]
+ [%- PROCESS order/tabs/_tax_row.html TAX=tax TAXINCLUDED=SELF.order.taxincluded %]
[%- END %]
<tr id="amount_row_id">
<th align="right">[%- 'Total' | $T8 %]</th>
<td align="right">
[%- L.div_tag(SELF.order.amount_as_number, id='amount_id') %]
+ </td>
</tr>
</table>
</td>
</td>
</tr>
- <tr>
- <td><hr></td>
- </tr>
-
</table>
</div>
function redisplay_linetotals(data) {
$('.row_entry [name="linetotal"]').each(function(idx, elt) {
- $(elt).html(data[idx]);
+ $(elt).html(data[idx]);
});
}