Merge branch 'r-1902001-01' into foodcourt
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
<option value="9">Last year</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<% if defined? @payment_methods %>
|
||||
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
||||
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.select_payments") %></label>
|
||||
|
||||
<select name="payment_type" id="payment_type" class="form-control">
|
||||
@@ -30,6 +30,12 @@
|
||||
</select>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 mbl-style">
|
||||
<label class="font-14"><%= t("views.right_panel.detail.customer_name") %></label>
|
||||
<input type="text" placeholder="Customer name" class="form-control m-t-3" name="customer" id="customer_filter" >
|
||||
</div>
|
||||
|
||||
<div class="col-lg-2 col-md-2 col-sm-2 col-mbl-view mbl-style">
|
||||
<!-- <label class="">Select Shift Period</label> -->
|
||||
<label class="font-14 mbl_lbl"><%= t("views.right_panel.detail.from") %></label>
|
||||
|
||||
@@ -39,19 +39,13 @@
|
||||
<tbody>
|
||||
<% grand_total = 0 %>
|
||||
<% @sale_data.each do |result| %>
|
||||
<% table_name=nil
|
||||
table_type =nil
|
||||
if table = result.bookings[0].dining_facility
|
||||
table_type = table.type
|
||||
table_name = table.name
|
||||
end %>
|
||||
<% grand_total = grand_total + result.grand_total %>
|
||||
<% grand_total = grand_total + result.grand_total %>
|
||||
<tr style="border-top:4px double #666;">
|
||||
<td><%= result.receipt_no rescue '-' %> </td>
|
||||
<td><%=l result.receipt_date.getlocal, :format => :short rescue '-' %> </td>
|
||||
<td><%= @shift_from %> - <%= @shift_to %></td>
|
||||
<td><%= result.cashier_name rescue '-' %></td>
|
||||
<td><%= table_type %> - <%= table_name %></td>
|
||||
<td><%= result.table_type %> - <%= result.table_name %></td>
|
||||
<td><%= number_format(result.grand_total, precision: precision, delimiter: delimiter) %></td>
|
||||
<!-- <td> </td> -->
|
||||
</tr>
|
||||
@@ -172,9 +166,11 @@
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Customer</td>
|
||||
<td><%= result.customer.name rescue '-'%>
|
||||
(<%= result.customer.company rescue '-' %>)
|
||||
</td>
|
||||
<td><%= result.customer_name rescue '-'%>
|
||||
<% if result.customer_company.present? %>
|
||||
(<%= result.customer_company rescue '-' %>)
|
||||
<% end %>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
@@ -38,18 +38,12 @@
|
||||
<% 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 table = result.bookings[0].dining_facility
|
||||
table_type = table.type
|
||||
table_name = table.name
|
||||
end %>
|
||||
<tr style="border-top:4px double #666;">
|
||||
<td><%= result.receipt_no rescue '-' %> </td>
|
||||
<td><%=l result.receipt_date.getlocal, :format => :short rescue '-' %> </td>
|
||||
<td><%= @shift_from %> - <%= @shift_to %></td>
|
||||
<td><%= result.cashier_name rescue '-' %></td>
|
||||
<td><%= table_type %> - <%= table_name %></td>
|
||||
<td><%= result.table_type %> - <%= result.table_name %></td>
|
||||
<td><%= number_format(result.grand_total, precision: precision, delimiter: delimiter) %></td>
|
||||
</tr>
|
||||
|
||||
@@ -171,9 +165,11 @@
|
||||
<td> </td>
|
||||
<td> </td>
|
||||
<td>Customer</td>
|
||||
<td><%= result.customer.name rescue '-'%>
|
||||
(<%= result.customer.company rescue '-' %>)
|
||||
</td>
|
||||
<td><%= result.customer_name rescue '-'%>
|
||||
<% if result.customer_company.present? %>
|
||||
(<%= result.customer_company rescue '-' %>)
|
||||
<% end %>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user