<?php if( !$Excel ){ ?>
<style type="text/css"> 
   body {font-size:11px} 
</style>
<table style="text-align: left; width: 100%; font-size: 20px;" border="0" cellpadding="2" cellspacing="2">
    <tbody>
        <tr>
            <td width="30%">Almac&eacute;n:<br><?=$s_DescripcionAlmacen?></td>
            <td width="30%" style="text-align: center;">Fecha y Hora de Impresi&oacute;n:<br><?=date( "Y-m-d H:i:s" )?></td>
            <td width="30%" style="text-align: right;">Usuario:<br><?=myUser::getUser()->getUserId()?></td>
        </tr>
    </tbody>
</table>
<hr>
<?php } ?>
<table style="text-align: left; width: 100%; font-size: 10px;" border="0" cellpadding="2" cellspacing="2">
    <tbody id="">
        <tr>
            <th style="text-align: center; background-color: #D4D0C8; width: 2%;"><b>No</b></th>
            <th style="text-align: center; background-color: #D4D0C8; width: 10%;"><b>C&oacute;digo</b></th>
            <th style="text-align: center; background-color: #D4D0C8; width: 20%;"><b>Descripci&oacute;n</b></th>
            <th style="text-align: center; background-color: #D4D0C8; width: 20%;"><b>Linea</b></th>
            <th style="text-align: center; background-color: #D4D0C8; width: 10%;"><b>Stock Fisico</b></th>
        </tr>
    </tbody>
    <tbody id="">
        <?php $f_SumaCostoTotal = 0.00 ?>
        <?php foreach ( $a_Rs as $i_Key => $a_Data ){ ?>
            <?php
            $o_MST_ListaPrecioDetalleBN = MST_ListaPrecioDetalleFN::buscarPrecioGeneral( $a_Data['IdItem'] );
            if( !$o_MST_ListaPrecioDetalleBN )
            {
                $o_MST_ListaPrecioDetalleBN = new MST_ListaPrecioDetalleBN();
            }
            $f_UltimoCostoKardex = $o_MST_ListaPrecioDetalleBN->getPrecioCosto();
            $f_CostoTotal        = $f_UltimoCostoKardex * $a_Data['StockActual'];
            $f_SumaCostoTotal = $f_SumaCostoTotal + $f_CostoTotal;
            ?>
        <tr>
            <td align="center"><?=( $i_Key + 1 )?></td>
            <td align="center"><?=$a_Data['IdItem']?></td>
            <td align="" id=""><?=$a_Data['DescripcionItem']?></td>
            <td align="" id=""><?=$a_Data['LineaDesc']?></td>
            <td align="center"><?=number_format( $a_Data['StockActual'], 0 )?></td>
        </tr>
        <?php } ?>
        <tr>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
            <td >&nbsp;</td>
        </tr>
    </tbody>
</table>