<?php use_helper( 'UrlFunctions' ); ?>
<?php use_helper( 'IncludePartial' ); ?>
<?php use_helper( 'UtilFunctions' ); ?>
<style>
body {font-size:60%} 
.header { background-color: #E1E1E1; color: #444444; font-family: Arial,Helvetica,sans-serif; font-size: 11px; font-weight: bold; }
.pager { background-color: #F4F4F4; background-image: none; border-bottom: thin solid #999999; }
.backgAviso{ background-color: #F4F4BC }
</style>
<table class="text-center" width="98%" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="marco marcoTitle">
                        <table class="" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="100%" valign="top">
                                    <?php include_partial( "infohead", array( "o_DefaultBN" => $o_DefaultBN ) ); ?>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr><td>&nbsp;</td></tr>
    <tr>
        <td>
            <fieldset class="">
                <!-- <legend class="w-auto">Productos</legend> -->
                <div class="table-responsive" id="content_result_grid1">
                    <table class="table table-bordered table-hover">
                        <thead class="table-primary">
                        <tr>
                            <th width="2%"  align="center"><b>No</b></th>
                            <th width="5%" align="center"><b>C&oacute;digo</b></th>
                            <th width="20%" align=""      ><b>Descripci&oacute;n</b></th>
                            <th width="8%" align="center"><b>Stock Actual</b></th>
                            <th width="8%" align="center"><b>Stock Minimo</b></th>
                            <th width="8%" align="center"><b>Cantidad</b></th>
                        </tr>
                        </thead>
                        <?php foreach ( $a_ALM_RequerimientoDetalle as $i_Key => $o_ALM_RequerimientoDetalleBN ){ ?>
                            <tr>
                                <td align="center"><?=( $i_Key + 1 )?></td>
                                <td align="center" style="cursor:pointer; color:#2743B2; text-decoration:underline;" onclick="buscarResumenStock( $( this ).html() );"><?=$o_ALM_RequerimientoDetalleBN->getIdItem()?></td>
                                <td ><?=$o_ALM_RequerimientoDetalleBN->getDescripcionItem()?></td>
                                <td align="center" ><?=$o_ALM_RequerimientoDetalleBN->getStockAlmacenActual()?></td>
                                <td align="center"><?=$o_ALM_RequerimientoDetalleBN->getStockMinimo()?></td>
                                <td align="center"><?=$o_ALM_RequerimientoDetalleBN->getCantidadSugerida()?></td>
                            </tr>
                        <?php } ?>
                    </table>
                </div>
            </fieldset>
        </td>
    </tr>
</table>

