fine tuning
This commit is contained in:
parent
7207f6bded
commit
c88c2e6433
1 changed files with 6 additions and 5 deletions
|
|
@ -48,8 +48,7 @@
|
|||
<f:ajax render="#{orderlistContainer.clientId}"
|
||||
onevent="updateOrderItems" />
|
||||
</h:commandLink>
|
||||
<!-- item summary -->
|
||||
<h:inputHidden value="#{orderitem.item['total']}" a:data-id="orderitem_total"/>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</ui:repeat>
|
||||
|
|
@ -65,7 +64,9 @@
|
|||
</tr>
|
||||
</table>
|
||||
<!-- total summary -->
|
||||
<h:inputHidden value="#{workitem.item['order.total']}" a:data-id="orderitems_capacity" />
|
||||
<h:inputHidden value="#{workitem.item['order.total']}" a:data-id="orderitems_capacity">
|
||||
<f:convertNumber minFractionDigits="2" locale="de" />
|
||||
</h:inputHidden>
|
||||
|
||||
<!-- add button -->
|
||||
<h:commandButton value="#{message.add}" a:data-id="addposbutton_id"
|
||||
|
|
@ -118,7 +119,7 @@
|
|||
// round
|
||||
sum = Math.round(sum * 100) / 100;
|
||||
total = total + sum;
|
||||
$("[data-id='orderitem_total']",tableRow).val(sum);
|
||||
//$("[data-id='orderitem_total']",tableRow).val(sum);
|
||||
sum = convertToCurrency(sum);
|
||||
//console.log('sum=' + sum);
|
||||
$("[data-id='orderitem_amount']",tableRow).val(sum);
|
||||
|
|
@ -127,8 +128,8 @@
|
|||
});
|
||||
|
||||
// update total _capacity
|
||||
$("[data-id='orderitems_capacity']").val(total);
|
||||
total = convertToCurrency(total);
|
||||
$("[data-id='orderitems_capacity']").val(total);
|
||||
$("[data-id='orderlist_summary']", ".imixs-orderitems").empty();
|
||||
$("[data-id='orderlist_summary']", ".imixs-orderitems").append(total);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue