From 8775bd907b15b7544fab6a08fd991fcb24ed7933 Mon Sep 17 00:00:00 2001 From: Aaron Spencer Date: Thu, 22 Jun 2023 19:46:12 +0100 Subject: [PATCH] CLDC-2405: html modified to include new fields, method added to model --- app/components/log_summary_component.html.erb | 30 +++++++++++++------ app/models/sales_log.rb | 4 +++ 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/app/components/log_summary_component.html.erb b/app/components/log_summary_component.html.erb index e49567288..87e704ae3 100644 --- a/app/components/log_summary_component.html.erb +++ b/app/components/log_summary_component.html.erb @@ -23,8 +23,17 @@ <% end %> <% end %> + <% if log.sales? %> +
+ <% if log.purchaser_code %> + + <% end %> +
+ <% end %> - <% if log.lettings? && (log.needstype? or log.startdate?) %>

<% if log.needstype? %> @@ -35,17 +44,21 @@ <% end %>

<% end %> - <% if log.sales? %>

- <%= case log.ownership_scheme %> - when 1 then "shared ownership" - <% when 2 then "discounted ownership" - <% when 3 then "outright sale" %>> <% end %> - <% end %> + <% if log.ownership_scheme %> + <%= case log.ownership_scheme + when "shared ownership" then "Shared ownership" + when "discounted ownership" then "Discounted ownership" + when "outright sale" then "Outright or other sale" + end %> +
+ <% end %> + <% if log.saledate %> + Sale completed + <% end %>

<% end %> - <% if current_user.support? || current_user.organisation.has_managing_agents? %>
<% if log.owning_organisation %> @@ -63,7 +76,6 @@
<% end %> -