second display tax profile
This commit is contained in:
@@ -1453,7 +1453,7 @@ $(function() {
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: url,
|
url: url,
|
||||||
data: {"data":data,"status":status},
|
data: {"data":data,"status":status,"type":$("#link_type").val()},
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success:function(result){
|
success:function(result){
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class Origami::SecondDisplayController < BaseOrigamiController
|
|||||||
display_type = Lookup.find_by_lookup_type("display_type")
|
display_type = Lookup.find_by_lookup_type("display_type")
|
||||||
if !display_type.nil? && display_type.value.to_i == 2
|
if !display_type.nil? && display_type.value.to_i == 2
|
||||||
if params[:status]!= "billed"
|
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
|
else
|
||||||
tax_profiles = nil
|
tax_profiles = nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user