index ui for discount

This commit is contained in:
Yan
2017-06-08 10:40:06 +06:30
parent 06ccdac0c2
commit 612f037fe8
6 changed files with 176 additions and 5 deletions

View File

@@ -1,6 +1,15 @@
class Origami::DiscountsController < BaseOrigamiController
#discount page show from origami index with selected order
def index
sale_id = params[:id]
if Sale.exists?(sale_id)
@sale_data = Sale.find(sale_id)
end
end
def create
end
end