diff --git a/app/views/reports/receipt_no_detail/index.xls.erb b/app/views/reports/receipt_no_detail/index.xls.erb index a475fdee..83c83a0e 100755 --- a/app/views/reports/receipt_no_detail/index.xls.erb +++ b/app/views/reports/receipt_no_detail/index.xls.erb @@ -37,9 +37,16 @@ <% grand_total = 0 %> <% @sale_data.each do |result| %> <% grand_total = grand_total.to_f + result.grand_total.to_f%> + <% table_name=nil + table_type =nil + if result.table_id.to_i>0 + table = DiningFacility.find(result.table_id) + table_type = table.type + table_name = table.name + end %>