shift sale
This commit is contained in:
@@ -4,7 +4,6 @@ class Origami::ShiftsController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def show
|
||||
puts current_user.id
|
||||
@shift = ShiftSale.current_open_shift(current_user.id)
|
||||
end
|
||||
|
||||
@@ -15,8 +14,9 @@ class Origami::ShiftsController < BaseOrigamiController
|
||||
|
||||
def create
|
||||
opening_balance = params[:opening_balance]
|
||||
cashier_terminal = params[:cashier_terminal]
|
||||
@shift = ShiftSale.new
|
||||
@shift.create(opening_balance,current_user)
|
||||
@shift.create(opening_balance,cashier_terminal, current_user)
|
||||
end
|
||||
|
||||
def update_shift
|
||||
@@ -30,7 +30,7 @@ class Origami::ShiftsController < BaseOrigamiController
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def edit
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user