osaka menu update and void tax calc fix
This commit is contained in:
@@ -12,9 +12,10 @@ class Origami::VoidController < BaseOrigamiController
|
||||
|
||||
# update count for shift sale
|
||||
if(sale.sale_status == "void")
|
||||
# shift = ShiftSale.current_open_shift(sale.cashier_id)
|
||||
shift = ShiftSale.find(sale.shift_sale_id)
|
||||
shift.calculate(sale_id, "void")
|
||||
if sale.shift_sale_id != nil
|
||||
shift = ShiftSale.find(sale.shift_sale_id)
|
||||
shift.calculate(sale_id, "void")
|
||||
end
|
||||
end
|
||||
|
||||
bookings = sale.bookings
|
||||
|
||||
Reference in New Issue
Block a user