Update property_hires_controller.rb

This commit is contained in:
wmcheng 2019-06-14 01:33:44 +08:00
parent cb4065aef7
commit 3f7d044539
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ class PropertyHiresController < ApplicationController
"value" => property.note
}
end
if !property_hire.property_number.blank?
if !property.property_number.blank?
data << {
"header" => t("property_hire.property_number"),
"value" => property.property_number
@ -79,7 +79,7 @@ class PropertyHiresController < ApplicationController
"header" => t("property_hire.can_be_hired"),
"value" => (property.can_be_hired ? "<span class='label label-success'>Yes</span>" : "<span class='label label-danger'>No</span>")
}
if !property_hire.purchase_date.to_s.blank?
if !property.purchase_date.to_s.blank?
data << {
"header" => t("property_hire.purchase_date"),
"value" => property.purchase_date.strftime("%Y-%m-%d")