{% load i18n %} {% load django_ledger %} {% load widget_tweaks %} {% if not create_po %} {% if style == 'po-detail' %}
{% icon 'uil:bill' 36 %}

{{ po_model.po_number }}

{{ po_model.get_po_status_display }}

{# Display PO Contract Information #} {% if po_model.is_contract_bound %}

{% trans 'Contract' %}

{{ po_model.ce_model.estimate_number }}

{% trans 'View Contract' %}
{% endif %}
{% if po_model.is_draft %}
{% trans 'Draft Date' %}

{{ po_model.date_draft|date }}

{% trans 'Purchase Order Amount' %}

{% currency_symbol %}{{ po_model.po_amount|currency_format }}

{% endif %} {% if po_model.is_review %}
{% trans 'Review Date' %}

{{ po_model.date_in_review|date }}

{% trans 'Purchase Order Amount' %}

{% currency_symbol %}{{ po_model.po_amount|currency_format }}

{% endif %} {% if po_model.is_approved %}
{% trans 'Approved Date' %}

{{ po_model.date_approved|date }}

{% trans 'PO Amount' %}

{{ po_model.po_amount|currency_format }}{% currency_symbol %}

{% trans 'Received Amount' %}

{{ po_model.po_amount_received|currency_format }}{% currency_symbol %}

{% endif %} {% if po_model.is_fulfilled %}
{% trans 'Fulfilled Date' %}

{{ po_model.date_fulfilled|date }}

{% trans 'PO Amount' %}

{% currency_symbol %}{{ po_model.po_amount|currency_format }}

{% trans 'Fulfilled' %}
{% endif %}
{% endif %} {% else %}
{% icon "ic:baseline-add-circle-outline" 48 %}

{% trans 'New Purchase Order' %}

{% endif %}