22 lines
325 B
Ruby
22 lines
325 B
Ruby
class Origami::ShiftsController < BaseOrigamiController
|
|
|
|
def index
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
def new
|
|
@float = Lookup.where('lookup_type=?','float')
|
|
end
|
|
|
|
def create
|
|
opening_balance = params[:opening_balance]
|
|
@shift = ShiftSale.new
|
|
@shift.create(opening_balance,current_user)
|
|
end
|
|
|
|
def edit
|
|
end
|
|
end
|