second display tax profile

This commit is contained in:
Myat Zin Wai Maw
2020-01-29 16:27:41 +06:30
parent 11ffaa738f
commit 8abbf7f1d4
2 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ class Origami::SecondDisplayController < BaseOrigamiController
display_type = Lookup.find_by_lookup_type("display_type")
if !display_type.nil? && display_type.value.to_i == 2
if params[:status]!= "billed"
tax_profiles = TaxProfile.all.order("order_by asc")
tax_profiles = TaxProfile.where(group_type: params[:type]).order("order_by asc")
else
tax_profiles = nil
end
@@ -27,7 +27,7 @@ class Origami::SecondDisplayController < BaseOrigamiController
#Shop Name in Navbor
# helper_method :shop_detail
# def shop_detail
#
#
# end