others payment

This commit is contained in:
Nweni
2017-06-07 13:02:12 +06:30
parent c18b57eca8
commit 9a23716c23
7 changed files with 49 additions and 35 deletions

View File

@@ -1,10 +0,0 @@
class Origami::CardPaymentsController < BaseOrigamiController
def index
end
def create
end
end

View File

@@ -0,0 +1,10 @@
class Origami::OthersPaymentsController < BaseOrigamiController
def index
end
def create
end
end

View File

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

View File

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