tax
This commit is contained in:
@@ -7,7 +7,7 @@ class TaxProfile < ApplicationRecord
|
||||
def self.calculate_tax(group_type)
|
||||
divided_value =0.0
|
||||
exclusive =0.0
|
||||
tax_profiles = TaxProfile.where(group_type: group_type)
|
||||
tax_profiles = TaxProfile.where(group_type: group_type,tax_type: 'Percentage')
|
||||
if !tax_profiles.empty?
|
||||
tax_profiles.each do |tax|
|
||||
#include or execulive
|
||||
|
||||
Reference in New Issue
Block a user