Fix billing page to show correct user who signed MOU

If the organisation table contains an entry for `agreement_signed_by_id`
and for `agreement_signed_on_behalf_of_name` then we should the person
who signed the MOU as being the `agreement_signed_on_behalf_of_name`.
This was wrongly showing the `agreement_signed_by_id` as the person who
signed the agreement.
This commit is contained in:
Katie Smith
2021-12-13 08:47:26 +00:00
parent 58532ee4ca
commit 30824b110c
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@
and financial agreement on {{ current_org.agreement_signed_at | format_date_normal }}.
</p>
<p class="govuk-body">
{{ current_org.agreement_signed_by.name or current_org.agreement_signed_on_behalf_of_name }} signed the agreement
{{ current_org.agreement_signed_on_behalf_of_name or current_org.agreement_signed_by.name }} signed the agreement
on behalf of {{ current_org.name}}.
</p>
<p class="govuk-body">