replace @shop and shop_details with current_shop
This commit is contained in:
@@ -9,7 +9,7 @@ class Origami::TableInvoicesController < BaseOrigamiController
|
||||
else
|
||||
sale = Sale.find(booking.sale_id)
|
||||
# rounding adjustment
|
||||
if @shop.is_rounding_adj
|
||||
if current_shop.is_rounding_adj
|
||||
a = sale.grand_total % 25 # Modulus
|
||||
b = sale.grand_total / 25 # Division
|
||||
#not calculate rounding if modulus is 0 and division is even
|
||||
|
||||
Reference in New Issue
Block a user