{% extends 'layout/base.html' %} {% block content %}
| # | Company | Action | Operator | Uploaded At |
|---|---|---|---|---|
| {{ loop.index }} | {{ doc.company.name }} | {# EXPENSE DOCUMENTS #} {% if doc.__tablename__ == 'expenses' %} {% if doc.month_id %} Go to Verify {% else %} No Month {% endif %} {# PURCHASE DOCUMENTS #} {% elif doc.__tablename__ == 'purchase' %} {% if doc.month_id and doc.folder and doc.folder.month and doc.folder.month.category and doc.folder.month.category.year %} Go to Verify {% else %} Missing Month or Folder {% endif %} {# SALES DOCUMENTS #} {% elif doc.doc_type == 'sales' %} {% if doc.month_id and doc.folder and doc.folder.year %} Go to Verify {% else %} Missing Month or Category {% endif %} {# BANKING DOCUMENTS #} {% elif doc.doc_type == 'banking' %} {% if doc.month_id and doc.folder and doc.folder.year %} Go to Verify {% else %} Missing Month or Category {% endif %} {# UNKNOWN DOC TYPE #} {% else %} N/A {% endif %} | {{ doc.user.name }} | {{ doc.created_at.strftime('%d-%m-%Y %I:%M %p') if doc.created_at else '-' }} |