diff --git a/app/controllers/settings/simple_menu_items_controller.rb b/app/controllers/settings/simple_menu_items_controller.rb index b37f6706..35af3b83 100755 --- a/app/controllers/settings/simple_menu_items_controller.rb +++ b/app/controllers/settings/simple_menu_items_controller.rb @@ -83,7 +83,7 @@ class Settings::SimpleMenuItemsController < ApplicationController format.html { redirect_to settings_menu_category_simple_menu_items_path, notice: 'Menu item was successfully created.' } format.json { render :show, status: :created, location: @settings_menu_item } - else + else format.html { render :new } format.json { render json: @settings_menu_item.errors, status: :unprocessable_entity } end diff --git a/app/models/sale.rb b/app/models/sale.rb index 7e68e771..3f741baf 100755 --- a/app/models/sale.rb +++ b/app/models/sale.rb @@ -182,7 +182,7 @@ class Sale < ApplicationRecord sale_item.product_alt_name = "-" sale_item.qty = block_count sale_item.unit_price = chargeObj.unit_price - sale_item.taxable_price = diningprice + sale_item.taxable_price = chargeObj.unit_price sale_item.is_taxable = chargeObj.taxable sale_item.sale_id = self.id sale_item.price = diningprice diff --git a/app/views/origami/surveys/_form.html.erb b/app/views/origami/surveys/_form.html.erb index 5a99b74b..59f9315d 100755 --- a/app/views/origami/surveys/_form.html.erb +++ b/app/views/origami/surveys/_form.html.erb @@ -17,21 +17,23 @@
-
+ <%= f.input :total_customer %> + <%= 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 } %> diff --git a/app/views/settings/dining_charges/_form.html.erb b/app/views/settings/dining_charges/_form.html.erb index ac8f92a1..a64ceb22 100755 --- a/app/views/settings/dining_charges/_form.html.erb +++ b/app/views/settings/dining_charges/_form.html.erb @@ -15,9 +15,9 @@ access_time <% if !@dining_charge.minimum_free_time.nil?%> - + <% else %> - + <% end %> @@ -28,9 +28,9 @@ access_time <% if !@dining_charge.charge_block.nil?%> - + <% else %> - + <% end %> diff --git a/app/views/settings/promotions/_form.html.erb b/app/views/settings/promotions/_form.html.erb index ab8172f7..d6df26f3 100755 --- a/app/views/settings/promotions/_form.html.erb +++ b/app/views/settings/promotions/_form.html.erb @@ -54,9 +54,9 @@ access_time <% if !@promotion.promo_start_hour.nil?%> - + <% else %> - + <% end %> @@ -67,9 +67,9 @@ access_time <% if !@promotion.promo_end_hour.nil?%> - + <% else %> - + <% end %>