shop_code

This commit is contained in:
Myat Zin Wai Maw
2019-12-05 14:56:47 +06:30
parent ccbd3c6966
commit b0f6368248
58 changed files with 95 additions and 26 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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]

View File

@@ -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

View File

@@ -1,5 +1,6 @@
class Transactions::SurveysController < ApplicationController
def index
@shop = Shop.current_shop
filter = params[:filter]
from = params[:from]
to = params[:to]