From 95e2ab1f03af6bf9522fc95afc7278d48dfb31f7 Mon Sep 17 00:00:00 2001 From: RamNNanduri Date: Thu, 21 Feb 2019 20:45:01 +0000 Subject: [PATCH] fixed bug issue #93 --- src/ase/cw/model/Bill.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ase/cw/model/Bill.java b/src/ase/cw/model/Bill.java index c2b68cb..f5eb4ee 100644 --- a/src/ase/cw/model/Bill.java +++ b/src/ase/cw/model/Bill.java @@ -82,8 +82,11 @@ else if (temp.getItem().getCategory() == categoryBeverage) { for (OrderItem ot : order.getOrderItems()){ if ( ot.getItem().getName().equals("Newspaper")){ discount += (ot.getItem().getPrice()); + break; } + break; } + break; } }