{% now "Y" as current_year %} {% load icon from django_ledger %} {% load trans from i18n %}
| {% trans 'Ledger Name' %} | {% trans 'Journal Entries' %} | {% trans 'Reports' %} | {% trans 'Earliest JE Date' %} | {% trans 'Posted' %} | {% trans 'Locked' %} | {% trans 'Locked by Closing Entry' %} | {% trans 'Actions' %} | {% trans 'Created' %} |
|---|---|---|---|---|---|---|---|---|
| {% if ledger_model.has_wrapped_model %} {{ ledger_model.get_wrapped_model_instance }} {% else %} {{ ledger_model.name }} {% endif %} | {% icon 'grommet-icons:transaction' 16 %} {{ ledger_model.journal_entries__count }} |
{% if ledger_model.is_posted %}
|
{% if ledger_model.is_posted and ledger_model.earliest_timestamp %} {{ ledger_model.earliest_timestamp | date }} {% endif %} | {% if ledger_model.is_posted %} {% icon 'ant-design:check-circle-filled' 20 %} {% else %} {% icon 'ant-design:check-circle-filled' 20 %} {% endif %} | {% if ledger_model.is_locked %} {% icon 'ooui:lock' 20 %} {% else %} {% icon 'ooui:un-lock' 20 %} {% endif %} | {% if ledger_model.has_jes_in_locked_period %} {% icon 'ooui:lock' 20 %} {% else %} {% icon 'ooui:un-lock' 20 %} {% endif %} |
|
{{ ledger_model.created | date }} |