Moved customer issue counts

This commit is contained in:
2022-02-20 15:22:31 -05:00
parent fc7501c4fe
commit 70e6038215
3 changed files with 7 additions and 9 deletions

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