Moved customer issue counts

This commit is contained in:
ricky committed 2022-02-20 15:22:31 -05:00
1 parent fc7501c4fe
commit 70e6038215
3 files changed
+7 -9

No files matched your search

+1
View File
@@ -92,6 +92,7 @@ class CustomersController < ApplicationController
@issues = @customer.issues
@billing_address = address_to_s(@customer.billing_address)
@shipping_address = address_to_s(@customer.shipping_address)
@closed_issues = (@issues - @issues.open)
rescue ActiveRecord::RecordNotFound
render_404
end