{% extends "base.html" %} {% block titulo %}Historial de Documentos{% endblock %} {% block encabezado %}Historial de Documentos{% endblock %} {% block contenido %}
| N° | Fecha | {{ 'Proveedor' if tipo=='oc' else 'Cliente' }} | Creado por | Total | Estado | Acciones |
|---|---|---|---|---|---|---|
| {{ '%03d'|format(num) }} | {{ fecha }} {{ hora }} | {{ nombre or 'Sin nombre' }} | {{ creador }} | ${{ fmt(total) }} | {% set editable = es_admin or (tipo=='oc' and puede_oc) or (tipo=='ot' and puede_caja) or tipo=='cot' %} {% if editable %} {% else %}{{ estado }}{% endif %} | {% if pdf_path %} PDF {% endif %} {% if tipo != 'oc' %} {% set cel = tel_valido(tel) %} {% if cel %} WhatsApp {% endif %} {% if correo and '@' in correo %} Correo {% endif %} {% endif %} {% if tipo=='cot' and estado=='Aprobada' %} → OT {% endif %} {% if es_admin or (tipo=='oc' and puede_oc) %} Editar {% endif %} |
| Sin documentos. | ||||||