replace @shop and shop_details with current_shop
This commit is contained in:
@@ -5,7 +5,7 @@ class Origami::RedeemPaymentsController < BaseOrigamiController
|
||||
@cashier_type = params[:type]
|
||||
@membership_rebate_balance=0
|
||||
sale_data = Sale.find_by_sale_id(@sale_id)
|
||||
if @shop.is_rounding_adj
|
||||
if current_shop.is_rounding_adj
|
||||
new_total = Sale.get_rounding_adjustment(sale_data.grand_total)
|
||||
else
|
||||
new_total = sale_data.grand_total
|
||||
|
||||
Reference in New Issue
Block a user