From 885bc7bb41e2404aa1e0a156741d54484c14c8af Mon Sep 17 00:00:00 2001 From: maebeale Date: Mon, 22 Jun 2026 08:22:49 -0400 Subject: [PATCH] Remove Credit Card option from payment and allocation type filters The CreditCardPayment type is no longer used; drop it from the payments Type filter and allocations Source type filter so the dropdowns only offer payment types that actually exist. Co-Authored-By: Claude Opus 4.8 --- app/views/allocations/_search_boxes.html.erb | 2 +- app/views/payments/_search_boxes.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/allocations/_search_boxes.html.erb b/app/views/allocations/_search_boxes.html.erb index ba5cbf59d7..ac3325a209 100644 --- a/app/views/allocations/_search_boxes.html.erb +++ b/app/views/allocations/_search_boxes.html.erb @@ -17,7 +17,7 @@
<%= select_tag "source_type[]", - options_for_select({ "All" => "", "Cash" => "CashPayment", "Check" => "CheckPayment", "Credit Card" => "CreditCardPayment", "Stripe" => "ExternalProcessorPayment", "Discount" => "Discount" }, Array(params[:source_type]).first), + options_for_select({ "All" => "", "Cash" => "CashPayment", "Check" => "CheckPayment", "Stripe" => "ExternalProcessorPayment", "Discount" => "Discount" }, Array(params[:source_type]).first), class: field_class %>
diff --git a/app/views/payments/_search_boxes.html.erb b/app/views/payments/_search_boxes.html.erb index 0c1c6ecc38..e22701f626 100644 --- a/app/views/payments/_search_boxes.html.erb +++ b/app/views/payments/_search_boxes.html.erb @@ -15,7 +15,7 @@ <%= select_tag "type[]", - options_for_select({ "All" => "", "Cash" => "CashPayment", "Check" => "CheckPayment", "Credit Card" => "CreditCardPayment", "Stripe" => "ExternalProcessorPayment" }, Array(params[:type]).first), + options_for_select({ "All" => "", "Cash" => "CashPayment", "Check" => "CheckPayment", "Stripe" => "ExternalProcessorPayment" }, Array(params[:type]).first), class: "w-full bg-white border border-gray-300 rounded-lg px-3 py-2 focus:ring-blue-500 focus:border-blue-500" %>