print cancel qrpay
This commit is contained in:
@@ -222,6 +222,14 @@ class Sale < ApplicationRecord
|
||||
|
||||
end
|
||||
|
||||
def generic_void?
|
||||
self.sale_status == 'void' && self.sale_audits.where(action: 'SALEVOID').exists?
|
||||
end
|
||||
|
||||
def mmqr_cancel_void?
|
||||
self.sale_status == 'void' && self.sale_audits.where(action: 'CANCEL_MMQR_PAYMENT').exists?
|
||||
end
|
||||
|
||||
def add_item (item)
|
||||
#check if the item is on promotion
|
||||
menu_category = MenuCategory.get_menu_category(item.item_code) #get menu category for menu items
|
||||
|
||||
Reference in New Issue
Block a user