New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JM- (SPARCRequest) Email "Requester" Column Feature [#151517872] #1163
Conversation
app/models/sub_service_request.rb
Outdated
@@ -62,6 +62,10 @@ def consult_arranged_date=(date) | |||
write_attribute(:consult_arranged_date, date.present? ? Time.strptime(date, "%m/%d/%Y") : nil) | |||
end | |||
|
|||
def display_service_requester_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If service requester is an identity, then we can do something equivalent using ssr.service_requester.full_name
%tbody | ||
- @ssrs_to_be_displayed.each do |ssr| | ||
%tr.skinny-black-border | ||
%td.skinny-black-border.center | ||
%strike= ssr.display_id | ||
%td.skinny-black-border.center | ||
%strike= ssr.org_tree_display | ||
%td.skinny-black-border.center | ||
%strike= ssr.display_service_requester_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ssr.service_requester.try(&:full_name) || 'N/A'
@@ -38,5 +39,6 @@ | |||
%td.skinny-black-border.center= ssr.display_id | |||
%td.skinny-black-border.center= ssr.org_tree_display | |||
%td.skinny-black-border.center= PermissibleValue.get_value('status', ssr.reload.status) | |||
%td.skinny-black-border.center= ssr.display_service_requester_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ssr.service_request.try(&:full_name) || 'N/A'
b9ec986
to
1f4e282
Compare
1f4e282
to
d7a31f0
Compare
https://www.pivotaltracker.com/story/show/151517872