Primer commit del sistema avantika sin cambios
This commit is contained in:
@@ -0,0 +1,92 @@
|
||||
<?php /* Smarty version Smarty3-b7, created on 2016-01-07 10:40:05
|
||||
compiled from "/var/www/html/templates/lists/reportes-buenfin-prov.tpl" */ ?>
|
||||
<?php /*%%SmartyHeaderCode:822327793568e94e5b64b87-88992831%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
||||
$_smarty_tpl->decodeProperties(array (
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'a1aa1c8f37802ae4a5ee10db3c41f966b0459513' =>
|
||||
array (
|
||||
0 => '/var/www/html/templates/lists/reportes-buenfin-prov.tpl',
|
||||
1 => 1410130460,
|
||||
),
|
||||
),
|
||||
'nocache_hash' => '822327793568e94e5b64b87-88992831',
|
||||
'function' =>
|
||||
array (
|
||||
),
|
||||
'has_nocache_code' => false,
|
||||
)); /*/%%SmartyHeaderCode%%*/?>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
||||
<?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('sucursales')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
|
||||
$_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['item']->key;
|
||||
?>
|
||||
<?php if (count($_smarty_tpl->getVariable('item')->value['proveedores'])>0){?>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><b><?php echo urldecode((utf8_decode($_smarty_tpl->getVariable('item')->value['nombre'])));?>
|
||||
</b></th>
|
||||
<th width="90" align="center"><div style="float:right"><a href="javascript:void(0)" id="showHide<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
||||
" onclick="ShowDesc(<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
||||
)">[+]</a></div></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="totales<?php echo $_smarty_tpl->getVariable('item')->value['sucursalId'];?>
|
||||
" style="display:none">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<th width="80" style="text-align:center"><b>No. Prov.</b></th>
|
||||
<th style="text-align:center"><b>Proveedor</b></th>
|
||||
<th width="100" style="text-align:center"><b>Productos Vendidos</b></th>
|
||||
<th width="100" style="text-align:center"><b>Costo Total</b></th>
|
||||
</tr>
|
||||
<?php $_smarty_tpl->tpl_vars['it1'] = new Smarty_Variable;
|
||||
$_smarty_tpl->tpl_vars['k1'] = new Smarty_Variable;
|
||||
$_from = $_smarty_tpl->getVariable('item')->value['proveedores']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
||||
if (count($_from) > 0){
|
||||
foreach ($_from as $_smarty_tpl->tpl_vars['it1']->key => $_smarty_tpl->tpl_vars['it1']->value){
|
||||
$_smarty_tpl->tpl_vars['k1']->value = $_smarty_tpl->tpl_vars['it1']->key;
|
||||
?>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it1')->value['proveedorId'];?>
|
||||
</td>
|
||||
<td style="text-align:left;"><?php echo $_smarty_tpl->getVariable('it1')->value['nombre'];?>
|
||||
</td>
|
||||
<td style="text-align:center;"><?php echo $_smarty_tpl->getVariable('it1')->value['totalProds'];?>
|
||||
</td>
|
||||
<td style="text-align:right;"><?php echo number_format($_smarty_tpl->getVariable('it1')->value['totalCosto'],2,'.',',');?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php }} ?>
|
||||
|
||||
<tr>
|
||||
<td id="alinear"></td>
|
||||
<td id="alinear"><b>TOTAL</b></td>
|
||||
<td id="alinear"><b><?php echo number_format($_smarty_tpl->getVariable('item')->value['totalProds'],0,'.',',');?>
|
||||
</b></td>
|
||||
<td style="text-align:right"><b>$<?php echo number_format($_smarty_tpl->getVariable('item')->value['totalCosto'],2,'.',',');?>
|
||||
</b></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<?php }?>
|
||||
<?php }} ?>
|
||||
</table>
|
||||
|
||||
<table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" border="0">
|
||||
<tr>
|
||||
<th width="83" style="text-align:center"></th>
|
||||
<th style="text-align:center"><b>TOTAL GRAL.</b></th>
|
||||
<th width="100" style="text-align:center"><b><?php echo number_format($_smarty_tpl->getVariable('totales')->value['prods'],0,'.',',');?>
|
||||
</b></th>
|
||||
<th width="105" style="text-align:right"><b><?php echo number_format($_smarty_tpl->getVariable('totales')->value['costo'],2,'.',',');?>
|
||||
</b></th>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user