From a24d7fde2e106a8d503f3b8cd5bede79ad012683 Mon Sep 17 00:00:00 2001 From: Shiro-Nek0 Date: Sat, 21 Mar 2026 22:31:05 -0300 Subject: [PATCH] vista hisorial trabajador para android y detalle ajustado --- templates/macros/modals.html | 72 +++++++++++----------- templates/worker_history.html | 109 ++++++++++++++++++---------------- 2 files changed, 96 insertions(+), 85 deletions(-) diff --git a/templates/macros/modals.html b/templates/macros/modals.html index 9ab5f97..fdda152 100644 --- a/templates/macros/modals.html +++ b/templates/macros/modals.html @@ -158,39 +158,41 @@
Productos Vendidos
- - - - - - - - - - - - {% for item in items %} - - - - - - - - {% else %} - - - - {% endfor %} - - - - - - - - -
ProductoCant.Precio Un.Total LíneaComisión
{{ item[0] }}{{ item[1] }}${{ "{:,.0f}".format(item[2]).replace(',', '.') }}${{ "{:,.0f}".format(item[4]).replace(',', '.') }}${{ "{:,.0f}".format(item[5]).replace(',', '.') }}
No se registraron productos en esta rendición.
Total Calculado por Sistema:${{ "{:,.0f}".format(total_calculado or 0).replace(',', '.') }}${{ "{:,.0f}".format(comision_total or 0).replace(',', '.') }}
+
+ + + + + + + + + + + + {% for item in items %} + + + + + + + + {% else %} + + + + {% endfor %} + + + + + + + + +
ProductoCant.Precio Un.Total LíneaComisión
{{ item[0] }}{{ item[1] }}${{ "{:,.0f}".format(item[2]).replace(',', '.') }}${{ "{:,.0f}".format(item[4]).replace(',', '.') }}${{ "{:,.0f}".format(item[5]).replace(',', '.') }}
No se registraron productos en esta rendición.
Total Calculado por Sistema:${{ "{:,.0f}".format(total_calculado or 0).replace(',', '.') }}${{ "{:,.0f}".format(comision_total or 0).replace(',', '.') }}
+
@@ -243,7 +245,7 @@ {% if total_declarado != total_calculado %} -
+
Discrepancia: El total declarado (${{ "{:,.0f}".format(total_declarado).replace(',', '.') }}) no coincide con la suma de los productos vendidos (${{ "{:,.0f}".format(total_calculado).replace(',', '.') }}).
{% endif %} @@ -259,7 +261,7 @@
Observaciones: -

+

{{ rendicion[9] if rendicion[9] else "Sin observaciones." }}

diff --git a/templates/worker_history.html b/templates/worker_history.html index f3798b2..25c56ad 100644 --- a/templates/worker_history.html +++ b/templates/worker_history.html @@ -4,9 +4,9 @@ {% block title %}Mis Rendiciones{% endblock %} {% block content %} -
-

Mis Rendiciones

- + @@ -21,54 +21,63 @@
- - - - - - - - - - - - - {% for r in rendiciones %} - - - - - - - - + + + + {% else %} + + + + {% endfor %} + +
FechaMi RolMóduloTotal DeclaradoGastosAcciones
{{ r[1] }} - {% if r[17] == 'Titular' %} - Titular - {% else %} - Acompañante - {% endif %} - {{ r[3] }} - ${{ "{:,.0f}".format((r[4] or 0) + (r[5] or 0) + (r[6] or 0) + (r[7] or 0)).replace(',', '.') }} - - ${{ "{:,.0f}".format(r[8] or 0).replace(',', '.') }} - - +
+ + + + + + + + + + + + + + {% for r in rendiciones %} + + + + + + + + + - {{ rendicion_detail_modal(r, r[14], r[15], r[16]) }} - - - {% else %} - - - - {% endfor %} - -
FechaMóduloMi RolGastosObservacionesTotal
{{ r[1] }}{{ r[3] }} + {% if r[17] == 'Titular' %} + Titular + {% else %} + Acompañante + {% endif %} + + ${{ "{:,.0f}".format(r[8] or 0).replace(',', '.') }} + + {{ r[9] if r[9] else '-' }} +
- - Aún no tienes rendiciones registradas. -
+
+ ${{ "{:,.0f}".format((r[4] or 0) + (r[5] or 0) + (r[6] or 0) + (r[7] or 0)).replace(',', '.') }} + + + {{ rendicion_detail_modal(r, r[14], r[15], r[16]) }} +
+ + Aún no tienes rendiciones registradas. +
+
{% endblock %} \ No newline at end of file