mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-10-08 13:35:25 +00:00
Check for union account on rigboard (#648)
* check if org is union * add check for PO back * add tick icon to PO received
This commit is contained in:
@@ -2,16 +2,22 @@
|
|||||||
<span class="badge text-bg-{% if event.confirmed %}success{% elif event.cancelled %}dark{% else %}warning{% endif %}">Status: {{ event.get_status_display }}</span>
|
<span class="badge text-bg-{% if event.confirmed %}success{% elif event.cancelled %}dark{% else %}warning{% endif %}">Status: {{ event.get_status_display }}</span>
|
||||||
{% if event.is_rig %}
|
{% if event.is_rig %}
|
||||||
{% if event.sum_total > 0 %}
|
{% if event.sum_total > 0 %}
|
||||||
{% if event.purchase_order %}
|
{% if event.organisation.union_account %}
|
||||||
<span class="badge text-bg-success">PO: Received</span>
|
{% if event.authorised %}
|
||||||
{% elif event.authorised %}
|
<span class="badge text-bg-success">Authorisation: Complete <span class="fas fa-check"></span></span>
|
||||||
<span class="badge text-bg-success">Authorisation: Complete <span class="fas fa-check"></span></span>
|
{% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %}
|
||||||
{% elif event.authorisation and event.authorisation.amount != event.total and event.authorisation.last_edited_at > event.auth_request_at %}
|
<span class="badge text-bg-warning"> Authorisation: Issue <span class="fas fa-exclamation-circle"></span></span>
|
||||||
<span class="badge text-bg-warning"> Authorisation: Issue <span class="fas fa-exclamation-circle"></span></span>
|
{% elif event.auth_request_to %}
|
||||||
{% elif event.auth_request_to %}
|
<span class="badge text-bg-info"> Authorisation: Sent <span class="fas fa-paper-plane"></span></span>
|
||||||
<span class="badge text-bg-info"> Authorisation: Sent <span class="fas fa-paper-plane"></span></span>
|
{% else %}
|
||||||
|
<span class="badge text-bg-danger">Authorisation: <span class="fas fa-times"></span></span>
|
||||||
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="badge text-bg-danger">Authorisation: <span class="fas fa-times"></span></span>
|
{% if event.purchase_order %}
|
||||||
|
<span class="badge text-bg-success">PO: Received <span class="fas fa-check"></span></span>
|
||||||
|
{% else %}
|
||||||
|
<span class="badge text-bg-danger">PO: <span class="fas fa-times"></span></span>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not event.dry_hire %}
|
{% if not event.dry_hire %}
|
||||||
|
|||||||
Reference in New Issue
Block a user