]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
Some cleanups
authorRoland Haeder <roland@mxchange.org>
Mon, 17 Aug 2015 11:00:59 +0000 (13:00 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 17 Aug 2015 11:01:26 +0000 (13:01 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/java/org/mxchange/pizzaapplication/product/Product.java
web/finished.jsp
web/index.jsp
web/preview.jsp

index 686f4e1ffddc2c3df8f471cd0d3f7259be3ae528..2ff49328480e41e2158ef8eb4e744a66cbe395be 100644 (file)
@@ -93,9 +93,9 @@ public interface Product extends Storeable, Comparable<Product> {
 
        /**
         * Compare method
-        * @param category Category to compare to
+        * @param product Product to compare to
         * @return Comparison value
         */
        @Override
-       public int compareTo (final Product category);
+       public int compareTo (final Product product);
 }
index 4f574d8b2b4502c9ca000a4697a4e2968fa17b1c..848cf56bbdc820b68de796bb058bde3b12bde2d2 100644 (file)
                                                                <td>
                                                                        <%=product.getPrice()%>
                                                                </td>
-                                                               <td>
+                                                               <td align="right">
                                                                        <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
                                                                </td>
                                                        </tr>
                                                        <%
                                                }
-                                               float totalPrice = app.calculateTotalPrice(request, session);
                                                %>
                                                <tr>
                                                        <td id="table_total_amount_left">
                                                        <td id="table_total_amount_right">
                                                                <%=app.calculateTotalAmount(request, session)%>
                                                        </td>
-                                                       <td class="spacer">
+                                                       <td>
                                                                &nbsp;
                                                        </td>
                                                        <td id="table_total_sum_left">
                                                                Gesamtpreis:
                                                        </td>
-                                                       <td id="table_total_sum_right">
-                                                               <%=totalPrice%>
+                                                       <td id="table_total_sum_right" align="right">
+                                                               <%=app.calculateTotalPrice(request, session)%>
                                                        </td>
                                                </tr>
 
index 31610d6b9dcd9f1e70227dc4d116b9d0a06a3f79..6409310fd5f5421905e4c4787c4d87721ecd1cb1 100644 (file)
@@ -79,8 +79,8 @@
                                                                <td>
                                                                        <%=product.getTitle()%>
                                                                </td>
-                                                               <td>
-                                                                       <%=product.getPrice()%>
+                                                               <td align="right">
+                                                                       <fmt:formatNumber type="currency"><%=product.getPrice()%></fmt:formatNumber>
                                                                </td>
                                                        </tr>
                                                        <%
index ca5a32d7d14f14e58407a0d07829778c30c89dcf..3d2b9b73f21b0fdefd46a2609e0b8663328d3f24 100644 (file)
@@ -89,7 +89,7 @@
                                                                <td>
                                                                        <%=product.getPrice()%>
                                                                </td>
-                                                               <td>
+                                                               <td align="right">
                                                                        <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
                                                                </td>
                                                        </tr>
                                                        <td id="table_total_amount_right">
                                                                <%=app.calculateTotalAmount(request, session)%>
                                                        </td>
-                                                       <td class="spacer">
+                                                       <td>
                                                                &nbsp;
                                                        </td>
                                                        <td id="table_total_sum_left">
                                                                Gesamtpreis:
                                                        </td>
-                                                       <td id="table_total_sum_right">
+                                                       <td id="table_total_sum_right" align="right">
                                                                <%=app.calculateTotalPrice(request, session)%>
                                                        </td>
                                                </tr>