{% extends "base.html" %} {% block title %}Purchase Order - FinansialApp{% endblock %} {% block page_title %}Purchase Order{% endblock %} {% block content %}
{% include '_po_help_modal.html' %}
Semua Draft Dikirim Diterima Dibatalkan
{% if sf %}{% endif %}
{% if session.role in ('ADMIN','FINANCE','OPERATOR') %} Buat PO {% endif %} Kustomisasi
{% if po_data %}
{% for d in po_data %} {% set p = d.po %} {% endfor %}
Nomor PO Vendor Tanggal Exp. Terima Total Status Aksi
{{ p.nomor }} {{ p.vendor }} {{ p.tanggal|tgl }} {{ p.expected_date|tgl if p.expected_date else '-' }} {{ d.total|rp }} {% if p.status == 'DRAFT' %} Draft {% elif p.status == 'DIKIRIM' %} Dikirim {% elif p.status == 'DITERIMA' %} Diterima {% elif p.status == 'DIBATALKAN' %} Dibatalkan {% endif %}
{% if session.role in ('ADMIN','FINANCE','OPERATOR') and p.status not in ('DITERIMA','DIBATALKAN') %} {% endif %} {% if session.role in ('ADMIN','FINANCE') %}
{% endif %}
{% else %}

Belum ada Purchase Order{% if sf %} dengan status {{ sf }}{% endif %}.

{% if session.role in ('ADMIN','FINANCE','OPERATOR') %} Buat PO Pertama {% endif %}
{% endif %} {% endblock %}