Skip to content

Commit

Permalink
TC NA group type report updates, legacy LTSA pid description. (#1969)
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Lovett <[email protected]>
  • Loading branch information
doug-lovett authored Jul 8, 2024
1 parent 926cfdb commit a59dc6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
{% if group.owners|length > 1 and group.type != 'NA' %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
Expand Down Expand Up @@ -121,7 +121,7 @@
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
{% if group.owners|length > 1 and group.type != 'NA' %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</td>
<td class="col-55">
<span class="section-sub-title">Group Tenancy Type:&nbsp;</span>
{% if group.owners|length > 1 %}Joint Tenancy{% else %}N/A{% endif %}
{% if group.owners|length > 1 and group.type != 'NA' %}Joint Tenancy{% else %}N/A{% endif %}
</td>
</tr>
</table>
Expand Down
2 changes: 2 additions & 0 deletions mhr_api/src/mhr_api/models/db2/location.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def new_registration_json(self):
tax_date = model_utils.format_local_date(self.tax_certificate_date)
if tax_date:
location['taxExpiryDate'] = tax_date
if self.ltsa:
location['legalDescription'] = self.ltsa.ltsa_description
return self.derive_location_type(location)

def derive_location_type(self, location: dict) -> dict:
Expand Down

0 comments on commit a59dc6c

Please sign in to comment.