udate add order controller
This commit is contained in:
@@ -10,6 +10,7 @@ class Origami::AddordersController < ApplicationController#BaseOrigamiController
|
|||||||
|
|
||||||
def detail
|
def detail
|
||||||
@menu = MenuCategory.all.active
|
@menu = MenuCategory.all.active
|
||||||
|
#@menu = MenuCategory.where("menu_category_id is NULL").active
|
||||||
@table_id = params[:id]
|
@table_id = params[:id]
|
||||||
@table = DiningFacility.find(@table_id)
|
@table = DiningFacility.find(@table_id)
|
||||||
@booking = @table.get_booking
|
@booking = @table.get_booking
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ class Origami::DiscountsController < BaseOrigamiController
|
|||||||
# sale.grand_total = (sub_total.to_f - overall_discount.to_f) + sale.total_tax;
|
# sale.grand_total = (sub_total.to_f - overall_discount.to_f) + sale.total_tax;
|
||||||
# sale.save
|
# sale.save
|
||||||
if discount_items.length > 0
|
if discount_items.length > 0
|
||||||
puts discount_items.to_json
|
|
||||||
puts "dddddddddddd"
|
|
||||||
|
|
||||||
#save sale item for discount
|
#save sale item for discount
|
||||||
discount_items.each do |di|
|
discount_items.each do |di|
|
||||||
|
|||||||
Reference in New Issue
Block a user