{% extends "base.html" %} {% block title %}{{ t('Recurring Documents') }}{% endblock %} {% block content %}

{{ t('Recurring Documents') }}

{{ t('Rent, service contracts, subscriptions and monthly accruals, created on schedule.') }}
{% if can_write %}
+ {{ t('Customer Invoice') }} + {{ t('Vendor Bill') }} + {{ t('Journal Entry') }}
{% endif %}
{% if due %}
{{ icon('calendar') }}{{ due }} {{ t('documents are due to be created as of today.') }} {% if can_write %}
{% endif %}
{% endif %}
{% for code, lbl in [('', 'All'), ('out_invoice', 'Customer Invoices'), ('in_invoice', 'Vendor Bills'), ('entry', 'Journal Entries')] %} {{ t(lbl) }} {% endfor %}
{% for r in rows %} {% else %}{% endfor %}
{{ t('Name') }}{{ t('Type') }}{{ t('Partner') }}{{ t('Branch') }}{{ t('Repeat') }} {{ t('Amount') }}{{ t('Next date') }}{{ t('Created') }}{{ t('Status') }}
{{ r.name }}{% if r.auto_post %} {{ t('auto-post') }}{% endif %}{% if r.last_error %} !{% endif %} {{ t(kinds[r.kind]) }}{{ nm({'name_en': r.pname_en, 'name_ar': r.pname_ar}) if r.pname_en else '' }} {{ branches[r.branch_id].code if r.branch_id in branches else '' }} {{ t('every') }} {{ r.every if r.every > 1 else '' }} {{ t({'weekly': 'week(s)', 'monthly': 'month(s)', 'quarterly': 'quarter(s)', 'yearly': 'year(s)'}[r.frequency]) }} {{ r.amount|money(r.currency) }} {{ r.currency }} {{ r.next_date or '—' }} {{ r.done_count }}{% if r.max_count %} / {{ r.max_count }}{% endif %} {{ t(r.state|capitalize) }}
{{ t('No recurring documents yet. Create one here, or use "Make recurring" on an invoice, bill or journal entry.') }}
{% endblock %}