add FOC,VOID remark in Transaction/Sale and new Transaction/Survey

This commit is contained in:
phyusin
2018-03-21 15:07:57 +06:30
parent a30abfb30c
commit 16d60add22
8 changed files with 88 additions and 22 deletions

View File

@@ -0,0 +1,53 @@
<div class="page-header">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="<%= dashboard_path %>"><%= t("views.right_panel.button.home") %></a></li>
<li class="breadcrumb-item active"><%= t("views.right_panel.detail.survey") %></li>
<span class="float-right">
<%= link_to 'Back', dashboard_path %>
</span>
</ol>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="main-box-body clearfix p-l-15 p-r-15">
<div class="card">
<div class="table-responsive">
<table class="table ">
<thead>
<th><%= t("views.right_panel.detail.dining") %></th>
<th><%= t("views.right_panel.detail.receipt_no") %></th>
<th><%= t("views.right_panel.detail.created_by") %></th>
<th><%= t("views.right_panel.detail.child") %></th>
<th><%= t("views.right_panel.detail.adult") %></th>
<th><%= t("views.right_panel.detail.male") %></th>
<th><%= t("views.right_panel.detail.female") %></th>
<th><%= t("views.right_panel.detail.foreigner") %></th>
</thead>
<tbody>
<% if !@surveys.nil? %>
<% @surveys.each do |survey| %>
<tr>
<td><%= survey.dining_name rescue ' '%></td>
<td><%= survey.receipt_no rescue '-'%></td>
<td><%= survey.created_by rescue ' '%></td>
<td><%= survey.child rescue ' '%></td>
<td><%= survey.adult rescue ' '%></td>
<td><%= survey.male rescue ' '%></td>
<td><%= survey.female rescue ' '%></td>
<td>
<% if !survey.foreigner.nil? %>
<%= JSON.parse(survey.foreigner) %>
<% end %>
</td>
</tr>
<% end %>
<% end %>
</tbody>
</table>
<br>
</div>
</div>
</div>
</div>
</div>