{% extends "base.html" %} {% block title %}Invoice - FinansialApp{% endblock %} {% block page_title %}Daftar Invoice{% endblock %} {% block content %}
Semua Draft Terkirim Lunas
{% if sf %}{% endif %}
{% if session.role in ('ADMIN','FINANCE','OPERATOR') %} Buat Invoice {% endif %} {% if session.role == 'ADMIN' %} Template {% endif %}
{% for inv in invoices %} {% set items_total = namespace(v=0) %} {% else %} {% endfor %}
No. Invoice Tanggal Pelanggan Total Jatuh Tempo Status Aksi
{{ inv.nomor }} {% if inv.jurnal_id %}Transaksi{% endif %} {{ inv.tanggal|tgl }} {{ inv.pelanggan }} {# show total, need subtotal from items, simplified display #} Lihat {{ inv.jatuh_tempo|tgl if inv.jatuh_tempo else '-' }} {% if inv.status == 'DRAFT' %} Draft {% elif inv.status == 'SENT' %} Terkirim {% elif inv.status == 'PAID' %} Lunas {% endif %}
{% if session.role in ('ADMIN','FINANCE','OPERATOR') %} {% endif %} {% if session.role in ('ADMIN','FINANCE') %}
{% endif %}
Belum ada invoice
{% endblock %}