From de4f63aabc4971af8718507ea7ec634c1139b6f3 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 14 Dec 2017 11:36:20 +0630 Subject: [PATCH] price 0 in table and room show --- app/views/origami/home/show.html.erb | 9 ++++----- app/views/origami/rooms/show.html.erb | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 0b98ac76..2946791f 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -220,7 +220,7 @@ <% # Can't check for discount - unless sale_item.price == 0 + # unless sale_item.price == 0 count += 1 %> @@ -231,8 +231,7 @@ <% - - end + # end end end @@ -243,7 +242,7 @@ count += 1 sub_total = sub_total + (order_item.price * order_item.qty) - unless order_item.price == 0 %> + # unless order_item.price == 0 %> <%= count %> <%= order_item.item_name %> @@ -252,7 +251,7 @@ <% - end + # end end end end diff --git a/app/views/origami/rooms/show.html.erb b/app/views/origami/rooms/show.html.erb index 05f14c04..600eaf73 100755 --- a/app/views/origami/rooms/show.html.erb +++ b/app/views/origami/rooms/show.html.erb @@ -215,7 +215,7 @@ <% # Can't check for discount - unless sale_item.price == 0 + # unless sale_item.price == 0 count += 1 %> @@ -227,7 +227,7 @@ <% - end + # end end end @@ -238,7 +238,7 @@ count += 1 sub_total = sub_total + (order_item.price * order_item.qty) - unless order_item.price == 0 %> + # unless order_item.price == 0 %> <%= count %> <%= order_item.item_name %> @@ -247,7 +247,7 @@ <% - end + # end end end end