|
|
|
@ -157,12 +157,7 @@ class BulkUpload::LogToCsv |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def renewal |
|
|
|
def renewal |
|
|
|
case log.renewal |
|
|
|
checkbox_value(log.renewal) |
|
|
|
when 1 |
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
when 0 |
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def london_affordable_rent |
|
|
|
def london_affordable_rent |
|
|
|
@ -208,12 +203,7 @@ class BulkUpload::LogToCsv |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def previous_postcode_known |
|
|
|
def previous_postcode_known |
|
|
|
case log.ppcodenk |
|
|
|
checkbox_value(log.ppcodenk) |
|
|
|
when 1 |
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
when 0 |
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def homeless |
|
|
|
def homeless |
|
|
|
@ -226,25 +216,19 @@ class BulkUpload::LogToCsv |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def cbl |
|
|
|
def cbl |
|
|
|
case log.cbl |
|
|
|
checkbox_value(log.cbl) |
|
|
|
when 0 |
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
when 1 |
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def chr |
|
|
|
def chr |
|
|
|
case log.chr |
|
|
|
checkbox_value(log.chr) |
|
|
|
when 0 |
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
when 1 |
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def cap |
|
|
|
def cap |
|
|
|
case log.cap |
|
|
|
checkbox_value(log.cap) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def checkbox_value(field) |
|
|
|
|
|
|
|
case field |
|
|
|
when 0 |
|
|
|
when 0 |
|
|
|
2 |
|
|
|
2 |
|
|
|
when 1 |
|
|
|
when 1 |
|
|
|
|