shop code
This commit is contained in:
@@ -11,8 +11,6 @@ class Origami::VisaController < BaseOrigamiController
|
||||
end
|
||||
total = 0
|
||||
@visacount = 0
|
||||
|
||||
@shop = Shop.current_shop
|
||||
@rounding_adj = 0
|
||||
@can_visa = 0
|
||||
@member_discount = 0
|
||||
@@ -62,8 +60,6 @@ class Origami::VisaController < BaseOrigamiController
|
||||
ref_no = params[:ref_no]
|
||||
if(Sale.exists?(sale_id))
|
||||
saleObj = Sale.find(sale_id)
|
||||
|
||||
shop_details = Shop.current_shop
|
||||
# rounding adjustment
|
||||
# if shop_details.is_rounding_adj
|
||||
# new_total = Sale.get_rounding_adjustment(saleObj.grand_total)
|
||||
@@ -82,11 +78,4 @@ class Origami::VisaController < BaseOrigamiController
|
||||
@status, @sale = sale_payment.process_payment(saleObj, current_user, cash, "visa",ref_no,payment_for)
|
||||
end
|
||||
end
|
||||
|
||||
#Shop Name in Navbor
|
||||
|
||||
helper_method :shop_detail
|
||||
def shop_detail
|
||||
@shop = Shop.current_shop
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user