Files
ventas_php/templates_c/850842d6cd93c515b37239d0dba58858f9b4ddd5.file.conceptos-facturacion.tpl.php

75 lines
3.7 KiB
PHP
Executable File

<?php /* Smarty version Smarty3-b7, created on 2014-09-11 10:29:37
compiled from "/var/www/html/templates/lists/conceptos-facturacion.tpl" */ ?>
<?php /*%%SmartyHeaderCode:644425995411bfe1aa8322-04374947%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'850842d6cd93c515b37239d0dba58858f9b4ddd5' =>
array (
0 => '/var/www/html/templates/lists/conceptos-facturacion.tpl',
1 => 1410130457,
),
),
'nocache_hash' => '644425995411bfe1aa8322-04374947',
'function' =>
array (
),
'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" style="border-top:1px solid #CCCCCC">
<thead>
<tr>
<th width="50" align="center">&nbsp;</th>
<th width="50" align="center"><div align="center">Cant.</div></th>
<th width="100" align="center"><div align="center">Unid.</div></th>
<th width="50" align="center"><div align="center">ID.</div></th>
<th width="300" align="center"><div align="center">Descripci&oacute;n</div></th>
<th width="100" align="center"><div align="center">V. Unitario</div></th>
<th width="100" align="center"><div align="center">Importe</div></th>
<th width="50" align="center"><div align="center">E. Iva</div></th>
<th width="50" align="center"><div align="center">Acci&oacute;n</div></th>
</tr>
</thead>
<tbody>
<?php $_smarty_tpl->tpl_vars['concepto'] = new Smarty_Variable;
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
$_from = $_smarty_tpl->getVariable('conceptos')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if (count($_from) > 0){
foreach ($_from as $_smarty_tpl->tpl_vars['concepto']->key => $_smarty_tpl->tpl_vars['concepto']->value){
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['concepto']->key;
?>
<tr id="conceptoDiv<?php echo $_smarty_tpl->getVariable('key')->value;?>
">
<td id="conceptoBaseUserId<?php echo $_smarty_tpl->getVariable('key')->value;?>
" align="center" valign="top"><?php echo $_smarty_tpl->getVariable('key')->value;?>
</td>
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['cantidad'],2,".",",");?>
</td>
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['unidad'];?>
</td>
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['noIdentificacion'];?>
</td>
<td style="font-family:'Courier New', Courier, monospace; text-align:justify" valign="top"><?php echo nl2br($_smarty_tpl->getVariable('concepto')->value['descripcion']);?>
</td>
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['valorUnitario'],2,".",",");?>
</td>
<td align="center" valign="top"><?php echo number_format($_smarty_tpl->getVariable('concepto')->value['importe'],2,".",",");?>
</td>
<td align="center" valign="top"><?php echo $_smarty_tpl->getVariable('concepto')->value['excentoIva'];?>
</td>
<td align="center" valign="top">
<a href="javascript:void(0)" onclick="BorrarConcepto(<?php echo $_smarty_tpl->getVariable('key')->value;?>
)" title="Eliminar">
<img src="<?php echo $_smarty_tpl->getVariable('WEB_ROOT')->value;?>
/images/icons/action_delete.gif" border="0" />
</a>
</td>
</tr>
<?php }} else { ?>
<tr>
<td colspan="9" align="center">Ning&uacute;n concepto encontrado.</td>
</tr>
<?php } ?>
</tbody>
</table>