print cancel qrpay

This commit is contained in:
Dev Team
2025-06-30 17:07:42 +06:30
parent f22a61f1d9
commit 196f672aba
2 changed files with 12 additions and 1 deletions

View File

@@ -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