Cuentas por Pagar: corregida estructura del header para que las filas se inserten dentro del <tbody> y se alineen correctamente. Ajustada fila de totales y colspans en la lista a 11 columnas para coincidir con el encabezado. Sin cambios de funcionalidad, solo corrección visual/markup.

This commit is contained in:
2026-01-10 00:46:54 -06:00
parent 5e3eabb769
commit bb4022c952
2 changed files with 40 additions and 43 deletions

View File

@@ -1,24 +1,21 @@
<div class="clear"></div>
<!--THIS IS A WIDE PORTLET-->
<div class="portlet">
<div class="portlet-content nopadding">
<table width="1150" cellpadding="0" cellspacing="0" id="box-table-a" bgcolor="#FFFFFF">
<thead>
<tr>
<th width="60"><div align="center">No. Pedido</div></th>
<th width=""><div align="center">Proveedor</div></th>
<th width="80"><div align="center">Total</div></th>
<th width="70"><div align="center">Abonos</div></th>
<th width="70"><div align="center">Notas Cr&eacute;dito</div></th>
<th width="80"><div align="center">Descuentos</div></th>
<th width="80"><div align="center">Bonificaciones</div></th>
<th width="80"><div align="center">Devoluciones</div></th>
<th width="80"><div align="center">Saldo</div></th>
<th width="60"><div align="center">Notas Credito</div></th>
<th width="70"><div align="center">Status</div></th>
<th width="60"><div align="center">Acciones</div></th>
</tr>
</thead>
<tbody>
<div class="portlet-content nopadding">
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" bgcolor="#FFFFFF">
<thead>
<tr>
<th width="60"><div align="center">No. Pedido</div></th>
<th width=""><div align="left">Proveedor</div></th>
<th width="80"><div align="right">Total</div></th>
<th width="70"><div align="right">Abonos</div></th>
<th width="100"><div align="right">Notas Crédito</div></th>
<th width="80"><div align="right">Descuentos</div></th>
<th width="100"><div align="right">Bonificaciones</div></th>
<th width="90"><div align="right">Devoluciones</div></th>
<th width="80"><div align="right">Saldo</div></th>
<th width="100"><div align="center">Acciones</div></th>
<th width="80"><div align="center">Status</div></th>
</tr>
</thead>
<tbody>

View File

@@ -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"}
<tr>
<td align="center"></td>
<td align="center"><b>TOTALES</b></td>
<td align="center"><b>${$info.total|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalAbonos|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalNotas|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalDesc|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalBonif|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalDev|number_format:2:'.':','}</b></td>
<td align="center"><b>${$info.totalSaldo|number_format:2:'.':','}</b></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
<td align="center"></td>
</tr>
{/if}
{if isset($tipo) && $tipo == "search"}
<tr>
<td align="center"></td>
<td align="left"><b>TOTALES</b></td>
<td align="right"><b>${$info.total|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalAbonos|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalNotas|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalDesc|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalBonif|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalDev|number_format:2:'.':','}</b></td>
<td align="right"><b>${$info.totalSaldo|number_format:2:'.':','}</b></td>
<td align="center"></td>
<td align="center"></td>
</tr>
{/if}
{else}
<tr><td colspan="13" align="center">Ning&uacute;n registro encontrado.</td>
<tr><td colspan="13" align="center">Ning&uacute;n registro encontrado.</td></tr>
{/if}
{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$cuentasPagar.pages colspan=13}
{if isset($cuentasPagar.pages) && is_array($cuentasPagar.pages)}
{include file="{$DOC_ROOT}/templates/lists/pages_new.tpl" pages=$cuentasPagar.pages colspan=11}
{/if}