From fc986bfed2e000848fdbdeb7fc73e1fe39532313 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 12 Jul 2017 17:23:20 +0630 Subject: [PATCH] update show for discount --- app/views/origami/home/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index 15f28cf8..daacffd9 100644 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -220,7 +220,7 @@ <%= sub_total %> - <%if @obj_sale.discount_type == 'member_discount'%> + <%if @obj_sale != nil && @obj_sale.discount_type == 'member_discount'%> Member Discount: <%else%> Discount: