rescue member call and update oqs and js route bug
This commit is contained in:
@@ -30,6 +30,7 @@ class SaleItem < ApplicationRecord
|
||||
# end
|
||||
end
|
||||
|
||||
# Calculate food total and beverage total
|
||||
def self.calculate_food_beverage(sale_items)
|
||||
food_prices=0
|
||||
beverage_prices=0
|
||||
@@ -43,6 +44,7 @@ class SaleItem < ApplicationRecord
|
||||
return food_prices, beverage_prices
|
||||
end
|
||||
|
||||
# get food price or beverage price for item
|
||||
def self.get_price(sale_item_id)
|
||||
food_price=0
|
||||
beverage_price=0
|
||||
|
||||
Reference in New Issue
Block a user