update promotion with tax

This commit is contained in:
Aung Myo
2018-05-21 17:26:48 +06:30
parent fcfeb6fd98
commit b68169b244
3 changed files with 29 additions and 13 deletions

View File

@@ -425,6 +425,7 @@ class Sale < ApplicationRecord
tax_profiles = TaxProfile.all.order("order_by asc")
customer = Customer.find(sale.customer_id)
# #Creat new tax records
if sale.payment_status != 'foc'
tax_profiles.each do |tax|
# customer.tax_profiles.each do |cus_tax|