update no table quick srevice
This commit is contained in:
@@ -41,10 +41,18 @@
|
||||
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="table_id" value="<%=@dining_facility.id%>">
|
||||
<%if !@dining_facility.nil?%>
|
||||
<input type="hidden" name="table_id" value="<%= @dining_facility.id %>">
|
||||
<input type="hidden" name="table_type" value="<%= @table_type %>">
|
||||
<%= f.input :dining_name, :as => :hidden, :input_html => { :value => @dining_facility.name } %>
|
||||
<%else%>
|
||||
<input type="hidden" name="table_id" value="0">
|
||||
<input type="hidden" name="table_type" value="0">
|
||||
<%= f.input :dining_name, :as => :hidden, :input_html => { :value => 0 } %>
|
||||
<%end%>
|
||||
<input type="hidden" name="sale_id" value="<%=@id%>">
|
||||
<input type="hidden" name="cashier_type" value="<%=@cashier_type%>">
|
||||
<%= f.input :dining_name, :as => :hidden, :input_html => { :value => @dining_facility.name } %>
|
||||
|
||||
<%= f.input :created_by, :as => :hidden, :input_html => { :value => current_login_employee.name } %>
|
||||
<%= f.input :receipt_no, :as => :hidden, :input_html => { :value => @receipt_no} %>
|
||||
<%= f.input :total_amount, :as => :hidden, :input_html => { :value => @grand_total } %>
|
||||
@@ -228,8 +236,8 @@ var cashier_type = "<%= @cashier_type %>";
|
||||
});
|
||||
// click back button for redirect
|
||||
$('#back').on('click',function(){
|
||||
table_type = '<%=@table_type%>';
|
||||
table_id = '<%=@dining_facility.id%>';
|
||||
table_type = $('#table_type').val()
|
||||
table_id = $('#table_id').val()
|
||||
|
||||
if (cashier_type == "quick_service") {
|
||||
window.location.href = '/origami/sale/<%= @id %>/<%= @cashier_type %>/payment/';
|
||||
|
||||
@@ -1,12 +1,3 @@
|
||||
<!-- <div class="page-header">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item"><a href="<%= '/origami/table/@dining_facility.id' %>"><%= 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 t('.back',:default => t("views.btn.back")),'/origami/table/'+@dining_facility.id.to_s %>
|
||||
</span>
|
||||
</ol>
|
||||
</div> -->
|
||||
|
||||
<%= render 'form', survey: @survey %>
|
||||
|
||||
Reference in New Issue
Block a user