merge with staging
This commit is contained in:
@@ -36,7 +36,7 @@ class Origami::AddordersController < BaseOrigamiController
|
||||
if (params[:id])
|
||||
#Pull this menu
|
||||
@menu = MenuCategory.find_by_id(params[:id])
|
||||
puts @menu.menu_items[1].item_attributes.to_json
|
||||
# puts @menu.menu_items[1].item_attributes.to_json
|
||||
return @menu
|
||||
else
|
||||
MenuCategory.current_menu
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
class Origami::CardPaymentsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
|
||||
class Origami::CardPaymentsController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@membership_rebate_balance = 0
|
||||
@membership_id = 0
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::CashInsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::CashInsController < ApplicationController #BaseOrigamiController
|
||||
def new
|
||||
end
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::CashOutsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
def new
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
class Origami::CreditPaymentsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
|
||||
class Origami::CreditPaymentsController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::CustomersController < ApplicationController#BaseOrigamiController
|
||||
class Origami::CustomersController < ApplicationController #BaseOrigamiController
|
||||
load_and_authorize_resource
|
||||
def index
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::DiscountsController < ApplicationController#BaseOrigamiController
|
||||
class Origami::DiscountsController < ApplicationController #BaseOrigamiController
|
||||
authorize_resource :class => false
|
||||
|
||||
#discount page show from origami index with selected order
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::HomeController < ApplicationController#BaseOrigamiController
|
||||
class Origami::HomeController < ApplicationController #BaseOrigamiController
|
||||
before_action :set_dining, only: [:show]
|
||||
|
||||
def index
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::HomeController < BaseOrigamiController
|
||||
class Origami::HomeController < ApplicationController
|
||||
def index
|
||||
if params[:booking_id] != nil
|
||||
type=params[:booking_id].split('-')[0];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::InDutiesController < ApplicationController#BaseOrigamiController
|
||||
class Origami::InDutiesController < ApplicationController #BaseOrigamiController
|
||||
before_action :set_in_duty, only: %i[show edit update edit_in_duty update_for_in_duty destroy destroy_in_duty]
|
||||
|
||||
# GET /in_duties
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::JcbController < ApplicationController#BaseOrigamiController
|
||||
class Origami::JcbController < ApplicationController #BaseOrigamiController
|
||||
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::MasterController < ApplicationController#BaseOrigamiController
|
||||
class Origami::MasterController < ApplicationController #BaseOrigamiController
|
||||
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Origami::MoveroomController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::MoveroomController < ApplicationController #BaseOrigamiController
|
||||
|
||||
authorize_resource :class => false
|
||||
|
||||
def move_dining
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Origami::MovetableController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::MovetableController < ApplicationController #BaseOrigamiController
|
||||
|
||||
authorize_resource :class => false
|
||||
|
||||
def move_dining
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::MpuController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::MpuController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::OrdersController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::OrdersController < ApplicationController #BaseOrigamiController
|
||||
def show
|
||||
@tables = Table.all.active.order('status desc')
|
||||
@rooms = Room.all.active.order('status desc')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::OtherChargesController < ApplicationController#BaseOrigamiController
|
||||
class Origami::OtherChargesController < ApplicationController #BaseOrigamiController
|
||||
authorize_resource :class => false
|
||||
|
||||
def index
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
class Origami::OthersPaymentsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
|
||||
class Origami::OthersPaymentsController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@membership_rebate_balance = 0
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::PaymentsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::PaymentsController < ApplicationController #BaseOrigamiController
|
||||
authorize_resource :class => false
|
||||
def index
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::ProductCommissionsController < ApplicationController#BaseOrigamiController
|
||||
class Origami::ProductCommissionsController < ApplicationController #BaseOrigamiController
|
||||
before_action :set_product_commission, only: [:show, :edit, :update, :destroy]
|
||||
|
||||
# GET /product_commissions
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::RedeemPaymentsController < ApplicationController#BaseOrigamiController
|
||||
class Origami::RedeemPaymentsController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
payment_method = params[:payment_method]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::RequestBillsController < BaseOrigamiController
|
||||
class Origami::RequestBillsController < ApplicationController
|
||||
|
||||
# Print Request Bill and add to sale tables
|
||||
def print
|
||||
@@ -24,6 +24,9 @@ class Origami::RequestBillsController < BaseOrigamiController
|
||||
# Bind shift sale id to sale
|
||||
@sale_data.shift_sale_id = shift.id
|
||||
@sale_data.save
|
||||
|
||||
# Promotion Activation
|
||||
Promotion.promo_activate(@sale)
|
||||
else
|
||||
@status = false
|
||||
@error_message = "No Current Open Shift for This Employee"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::RoomInvoicesController < ApplicationController#BaseOrigamiController
|
||||
class Origami::RoomInvoicesController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@room = DiningFacility.find(params[:room_id])
|
||||
puts "room bookig lenght"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::RoomsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::RoomsController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@tables = Table.all.active.order('status desc')
|
||||
@rooms = Room.all.active.order('status desc')
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::SaleEditController < ApplicationController#BaseOrigamiController
|
||||
class Origami::SaleEditController < ApplicationController #BaseOrigamiController
|
||||
authorize_resource class: false
|
||||
# Index for sale item void OR edit
|
||||
def edit
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::SalesController < ApplicationController#BaseOrigamiController
|
||||
|
||||
def show
|
||||
@tables = Table.all.active.order('status desc')
|
||||
@rooms = Room.all.active.order('status desc')
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::ShiftsController < ApplicationController#BaseOrigamiController
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::TableInvoicesController < ApplicationController#BaseOrigamiController
|
||||
class Origami::TableInvoicesController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@table = DiningFacility.find(params[:table_id])
|
||||
puts "table bookig lenght"
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::VisaController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::VisaController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Origami::VoidController < BaseOrigamiController
|
||||
class Origami::VoidController < ApplicationController
|
||||
authorize_resource :class => false
|
||||
def overall_void
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
class Origami::VoucherController < ApplicationController#BaseOrigamiController
|
||||
|
||||
class Origami::VoucherController < ApplicationController #BaseOrigamiController
|
||||
def index
|
||||
@sale_id = params[:sale_id]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user