udate add order controller

This commit is contained in:
Aung Myo
2017-12-11 10:39:19 +06:30
parent d80c7840cc
commit 0dce6e4329
2 changed files with 1 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ class Origami::AddordersController < ApplicationController#BaseOrigamiController
def detail
@menu = MenuCategory.all.active
#@menu = MenuCategory.where("menu_category_id is NULL").active
@table_id = params[:id]
@table = DiningFacility.find(@table_id)
@booking = @table.get_booking

View File

@@ -29,8 +29,6 @@ class Origami::DiscountsController < BaseOrigamiController
# sale.grand_total = (sub_total.to_f - overall_discount.to_f) + sale.total_tax;
# sale.save
if discount_items.length > 0
puts discount_items.to_json
puts "dddddddddddd"
#save sale item for discount
discount_items.each do |di|