diff --git a/RIGS/templates/partials/event_status.html b/RIGS/templates/partials/event_status.html index a01e164a..230d7aa2 100644 --- a/RIGS/templates/partials/event_status.html +++ b/RIGS/templates/partials/event_status.html @@ -2,16 +2,22 @@ Status: {{ event.get_status_display }} {% if event.is_rig %} {% if event.sum_total > 0 %} - {% if event.purchase_order %} - PO: Received - {% elif event.authorised %} - Authorisation: Complete - {% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %} - Authorisation: Issue - {% elif event.auth_request_to %} - Authorisation: Sent + {% if event.organisation.union_account %} + {% if event.authorised %} + Authorisation: Complete + {% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %} + Authorisation: Issue + {% elif event.auth_request_to %} + Authorisation: Sent + {% else %} + Authorisation: + {% endif %} {% else %} - Authorisation: + {% if event.purchase_order %} + PO: Received + {% else %} + PO: + {% endif %} {% endif %} {% endif %} {% if not event.dry_hire %}