shop_code
This commit is contained in:
@@ -6,6 +6,7 @@ class Transactions::CreditNotesController < ApplicationController
|
||||
# GET /transactions/sales
|
||||
# GET /transactions/sales.json
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
@sources = [["All",''], ["Cashier","cashier"],["Quick Service","quick_service"],["Online Order","doemal_order"]]
|
||||
@customers = Customer.all
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ class Transactions::OrderReservationsController < ApplicationController
|
||||
# GET /transactions/order_reservations
|
||||
# GET /transactions/order_reservations.json
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
from, to = get_date_range_from_params
|
||||
filter = params[:filter]
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ class Transactions::OrdersController < ApplicationController
|
||||
before_action :check_user
|
||||
|
||||
def index
|
||||
|
||||
@shop = Shop.current_shop
|
||||
filter = params[:filter]
|
||||
from = params[:from]
|
||||
to = params[:to]
|
||||
|
||||
@@ -4,6 +4,7 @@ class Transactions::ShiftSalesController < ApplicationController
|
||||
before_action :check_user
|
||||
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
|
||||
filter = params[:filter]
|
||||
from = params[:from]
|
||||
@@ -32,7 +33,7 @@ class Transactions::ShiftSalesController < ApplicationController
|
||||
# GET /transactions/shift_sales/1
|
||||
# GET /transactions/shift_sales/1.json
|
||||
def show
|
||||
|
||||
@shop = Shop.current_shop
|
||||
@shift = ShiftSale.find(params[:id])
|
||||
|
||||
#get tax
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class Transactions::SurveysController < ApplicationController
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
filter = params[:filter]
|
||||
from = params[:from]
|
||||
to = params[:to]
|
||||
|
||||
Reference in New Issue
Block a user