This commit is contained in:
Nweni
2017-06-28 15:29:44 +06:30
parent 55278c83bc
commit 986655052a
9 changed files with 100 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
class Origami::ShiftsController < ApplicationController
class Origami::ShiftsController < BaseOrigamiController
def index
end
@@ -6,6 +7,13 @@ class Origami::ShiftsController < ApplicationController
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