check table status for late data and check pending showing when there is no item in origami

This commit is contained in:
phyusin
2017-12-11 17:39:19 +06:30
parent 01ead63d19
commit e727b8b22e
2 changed files with 6 additions and 2 deletions

View File

@@ -237,7 +237,7 @@
end
if @status_order == 'order' && @status_sale != 'sale'
unless @order_items.nil?
unless @order_items.nil? || @order_items.empty?
count = 0
@order_items.each do |order_item|
count += 1
@@ -306,7 +306,7 @@
<%
if @status_sale == 'sale'
unless @order_items.nil?
unless @order_items.nil? || @order_items.empty?
%>
Pending New Order
<table class="table table-striped">