check tax for promo activated
This commit is contained in:
@@ -426,6 +426,9 @@ class Sale < ApplicationRecord
|
|||||||
tax_profiles = TaxProfile.all.order("order_by asc")
|
tax_profiles = TaxProfile.all.order("order_by asc")
|
||||||
customer = Customer.find(sale.customer_id)
|
customer = Customer.find(sale.customer_id)
|
||||||
# #Creat new tax records
|
# #Creat new tax records
|
||||||
|
if order_source.to_s == "emenu"
|
||||||
|
order_source = "cashier"
|
||||||
|
end
|
||||||
|
|
||||||
if sale.payment_status != 'foc'
|
if sale.payment_status != 'foc'
|
||||||
tax_profiles.each do |tax|
|
tax_profiles.each do |tax|
|
||||||
|
|||||||
Reference in New Issue
Block a user