{% load i18n %} {% load django_ledger %} {% if not create_po %} {% if style == 'po-detail' %}

{% icon 'uil:bill' 36 %} {{ po_model.po_number }}

{% trans 'Status' %}: {{ 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' %} {% 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 'Purchase Order Amount' %}: {% currency_symbol %}{{ po_model.po_amount | currency_format }}

{% trans 'Received Amount' %}: {% currency_symbol %}{{ po_model.po_amount_received | currency_format }}

{% trans 'Paid Amount' %}: {% currency_symbol %}{{ total_paid | currency_format }}

{% endif %} {% if po_model.is_fulfilled %}

{% trans 'Fulfilled Date' %}:{{ po_model.date_fulfilled | date }}

{% trans 'Approved' %}: {{ po_model.date_approved | date }}

{% trans 'Purchase Order Amount' %}: {% currency_symbol %}{{ po_model.po_amount | currency_format }}

{% trans 'Fulfilled' %}: {% icon 'ant-design:check-circle-filled' 24 %}

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

{% trans 'New PO' %}

{% endif %}