others payment
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
class Origami::CardPaymentsController < BaseOrigamiController
|
||||
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
end
|
||||
10
app/controllers/origami/others_payments_controller.rb
Normal file
10
app/controllers/origami/others_payments_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Origami::OthersPaymentsController < BaseOrigamiController
|
||||
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def create
|
||||
end
|
||||
|
||||
end
|
||||
@@ -5,13 +5,17 @@ class Origami::PaymentsController < BaseOrigamiController
|
||||
end
|
||||
|
||||
def create
|
||||
#payment type
|
||||
#sale status
|
||||
#point - get [ food amount ]
|
||||
cash = params[:cash]
|
||||
card = params[:card]
|
||||
|
||||
#process_payment(invoice, action_by)
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
sale_id = params[:sale_id]
|
||||
if Sale.exists?(sale_id)
|
||||
@sale_data = Sale.find_by_sale_id(sale_id)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -25,13 +25,5 @@ class Origami::RequestBillsController < BaseOrigamiController
|
||||
printer.print_receipt_bill(print_settings,@sale_items,@sale,@sale_data)
|
||||
|
||||
end
|
||||
|
||||
|
||||
def show
|
||||
sale_id = params[:sale_id]
|
||||
if Sale.exists?(sale_id)
|
||||
@sale_data = Sale.find_by_sale_id(sale_id)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user