update for shift and deving member dis
This commit is contained in:
@@ -9,6 +9,11 @@ class Origami::VoidController < BaseOrigamiController
|
||||
sale.sale_status = 'void'
|
||||
sale.save
|
||||
|
||||
# update count for shift sale
|
||||
shift = ShiftSale.current_open_shift(sale.cashier_id)
|
||||
shift.total_void = shift.total_void + 1
|
||||
shift.save
|
||||
|
||||
bookings = sale.bookings
|
||||
bookings.each do |booking|
|
||||
orders = booking.orders
|
||||
|
||||
Reference in New Issue
Block a user