{% extends "base.html" %} {% block title %}Scadenzario - Mago4 Demo{% endblock %} {% block window_tabs %}event_note Scadenzario{% endblock %} {% set status_badge = {'overdue':'badge-danger','due_soon':'badge-warning','open':'badge-info','paid':'badge-success'} %} {% set status_label = {'overdue':'Scaduta','due_soon':'In scadenza','open':'Aperta','paid':'Saldata'} %} {% block content %}
Scadenzario — Partite Aperte
Tutte Incassi (Crediti) Pagamenti (Debiti)

event_note Partite ({{ schedules|length }})

{% for s in schedules %} {% set st = sched_status(s) %} {% set days = sched_days(s) %} {% endfor %}
TipoScadenzaGiorniCliente/FornitoreDocumentoModalitàImportoStato
{% if s.type == RECEIVABLE %}south_west Incasso {% else %}north_east Pagamento{% endif %} {{ s.due_date.strftime("%d/%m/%Y") }} {% if s.closed %} {% elif days < 0 %}{{ days }} {% elif days <= 7 %}+{{ days }} {% else %}+{{ days }}{% endif %} {{ s.custsupp_name }} {{ s.doc_no }}{% if s.is_credit_note %} NC{% endif %} {{ s.payment_method }} {% if s.is_credit_note %}−{% endif %}€ {{ "%.2f"|format(s.amount) }} {{ status_label[st] }} {% if not s.closed %} {% else %} check_circle {% endif %}
{% endblock %}