diff --git a/src/main/webapp/view/jsp/management/order/add-product-into-order.jsp b/src/main/webapp/view/jsp/management/order/add-product-into-order.jsp index 152ed27..0758e02 100644 --- a/src/main/webapp/view/jsp/management/order/add-product-into-order.jsp +++ b/src/main/webapp/view/jsp/management/order/add-product-into-order.jsp @@ -12,17 +12,17 @@ - - + + - + - +
<%@include file="../../../common/_sidenav.jsp" %>
@@ -46,19 +46,9 @@ Chưa nhập tên sản phẩm. Vui lòng kiểm tra lại.
- - - - - - - + @@ -119,75 +109,42 @@
+ <%@include file="../../../common/_footer.jsp" %> - <%@include file="../../../common/_footer.jsp" %> + <%@include file="../../../common/_goback.jsp" %> - <%@include file="../../../common/_goback.jsp" %> - - - - - - - - + + + + + + - @@ -225,6 +180,9 @@ var quantity = parseInt($('#product-quantity').val()); var price = parseFloat($('#product-price').val().replace(/[^0-9.-]+/g, '')) * 1000; var total = quantity * price; + if(isNaN(total)){ + total = 0; + } $('#product-total-price').val(formatCurrency(total)); }