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.