From bb4022c9528acbcda60d4c977e5722b561a1cad1 Mon Sep 17 00:00:00 2001 From: nickpons666 Date: Sat, 10 Jan 2026 00:46:54 -0600 Subject: [PATCH] =?UTF-8?q?Cuentas=20por=20Pagar:=20corregida=20estructura?= =?UTF-8?q?=20del=20header=20para=20que=20las=20filas=20se=20inserten=20de?= =?UTF-8?q?ntro=20del=20=20y=20se=20alineen=20correctamente.=20Ajus?= =?UTF-8?q?tada=20fila=20de=20totales=20y=20colspans=20en=20la=20lista=20a?= =?UTF-8?q?=2011=20columnas=20para=20coincidir=20con=20el=20encabezado.=20?= =?UTF-8?q?Sin=20cambios=20de=20funcionalidad,=20solo=20correcci=C3=B3n=20?= =?UTF-8?q?visual/markup.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/items/cuentas-pagar-header.tpl | 39 ++++++++++----------- templates/lists/cuentas-pagar.tpl | 44 ++++++++++++------------ 2 files changed, 40 insertions(+), 43 deletions(-) diff --git a/templates/items/cuentas-pagar-header.tpl b/templates/items/cuentas-pagar-header.tpl index 7be2c6b..6085ca7 100755 --- a/templates/items/cuentas-pagar-header.tpl +++ b/templates/items/cuentas-pagar-header.tpl @@ -1,24 +1,21 @@
- -
- - - - - - - - - - - - - - - - - - - \ No newline at end of file +
+
No. Pedido
Proveedor
Total
Abonos
Notas Crédito
Descuentos
Bonificaciones
Devoluciones
Saldo
Notas Credito
Status
Acciones
+ + + + + + + + + + + + + + + + diff --git a/templates/lists/cuentas-pagar.tpl b/templates/lists/cuentas-pagar.tpl index de24afd..fcbe9de 100755 --- a/templates/lists/cuentas-pagar.tpl +++ b/templates/lists/cuentas-pagar.tpl @@ -1,7 +1,8 @@ - {include file="{$DOC_ROOT}/templates/items/cuentas-pagar-header.tpl" clase="Off"} -{if count($cuentasPagar.items)} +{assign var="hasItems" value=(isset($cuentasPagar.items) && is_array($cuentasPagar.items) && count($cuentasPagar.items) > 0)} + +{if $hasItems} {foreach from=$cuentasPagar.items item=item key=key} {if $key%2 == 0} {include file="{$DOC_ROOT}/templates/items/cuentas-pagar-base.tpl" clase="Off"} @@ -10,27 +11,26 @@ {/if} {/foreach} - {if $tipo == "search"} - - - - - - - - - - - - - - - - - {/if} + {if isset($tipo) && $tipo == "search"} + + + + + + + + + + + + + + {/if} {else} - + {/if} -{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$cuentasPagar.pages colspan=13} \ No newline at end of file +{if isset($cuentasPagar.pages) && is_array($cuentasPagar.pages)} + {include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$cuentasPagar.pages colspan=11} +{/if}
No. Pedido
Proveedor
Total
Abonos
Notas Crédito
Descuentos
Bonificaciones
Devoluciones
Saldo
Acciones
Status
TOTALES${$info.total|number_format:2:'.':','}${$info.totalAbonos|number_format:2:'.':','}${$info.totalNotas|number_format:2:'.':','}${$info.totalDesc|number_format:2:'.':','}${$info.totalBonif|number_format:2:'.':','}${$info.totalDev|number_format:2:'.':','}${$info.totalSaldo|number_format:2:'.':','}
TOTALES${$info.total|number_format:2:'.':','}${$info.totalAbonos|number_format:2:'.':','}${$info.totalNotas|number_format:2:'.':','}${$info.totalDesc|number_format:2:'.':','}${$info.totalBonif|number_format:2:'.':','}${$info.totalDev|number_format:2:'.':','}${$info.totalSaldo|number_format:2:'.':','}
Ningún registro encontrado.
Ningún registro encontrado.