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}"
|
<f:ajax render="#{orderlistContainer.clientId}"
|
||||||
onevent="updateOrderItems" />
|
onevent="updateOrderItems" />
|
||||||
</h:commandLink>
|
</h:commandLink>
|
||||||
<!-- item summary -->
|
|
||||||
<h:inputHidden value="#{orderitem.item['total']}" a:data-id="orderitem_total"/>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</ui:repeat>
|
</ui:repeat>
|
||||||
|
|
@ -65,7 +64,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<!-- total summary -->
|
<!-- 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 -->
|
<!-- add button -->
|
||||||
<h:commandButton value="#{message.add}" a:data-id="addposbutton_id"
|
<h:commandButton value="#{message.add}" a:data-id="addposbutton_id"
|
||||||
|
|
@ -118,7 +119,7 @@
|
||||||
// round
|
// round
|
||||||
sum = Math.round(sum * 100) / 100;
|
sum = Math.round(sum * 100) / 100;
|
||||||
total = total + sum;
|
total = total + sum;
|
||||||
$("[data-id='orderitem_total']",tableRow).val(sum);
|
//$("[data-id='orderitem_total']",tableRow).val(sum);
|
||||||
sum = convertToCurrency(sum);
|
sum = convertToCurrency(sum);
|
||||||
//console.log('sum=' + sum);
|
//console.log('sum=' + sum);
|
||||||
$("[data-id='orderitem_amount']",tableRow).val(sum);
|
$("[data-id='orderitem_amount']",tableRow).val(sum);
|
||||||
|
|
@ -127,8 +128,8 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// update total _capacity
|
// update total _capacity
|
||||||
$("[data-id='orderitems_capacity']").val(total);
|
|
||||||
total = convertToCurrency(total);
|
total = convertToCurrency(total);
|
||||||
|
$("[data-id='orderitems_capacity']").val(total);
|
||||||
$("[data-id='orderlist_summary']", ".imixs-orderitems").empty();
|
$("[data-id='orderlist_summary']", ".imixs-orderitems").empty();
|
||||||
$("[data-id='orderlist_summary']", ".imixs-orderitems").append(total);
|
$("[data-id='orderlist_summary']", ".imixs-orderitems").append(total);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue