
<table style="margin-bottom: 0;" class="table table-sm table-bordered table-hover" id="">
    <thead >
    <tr class="table-primary">
        <th width="1%"  style="text-align: center" ><b>No</b></th>
        <th width="10%" style="text-align: center" ><b>Tipo</b></th>
        <th width="20%" style="text-align: left" ><b>Descripci&oacute;n</b></th>
        <th width="10%" style="text-align: center" ><b>Tipo de Cambio</b></th>
        <th width="10%" align=""><b>Monto Dolares</b></th>
        <th width="10%" style="text-align: center" ><b>Monto Soles</b></th>
        <th width="10%" style="text-align: center" ><b>Opciones</b></th>
    </tr>
    </thead>
    <tbody>
    <?php foreach ( $a_COM_GastosImportacionDet as $i_Key => $o_COM_GastosImportacionDetBN ){ ?>
    <tr>
        <th style="text-align: center;" scope="row"><?=( $i_Key + 1 )?></th>
        <td align="center"><?=$o_COM_GastosImportacionDetBN->getTipoGastoDesc()?></td>
        <td align="center"><?=$o_COM_GastosImportacionDetBN->getDescripcion()?></td>
        <td align="center"><?=number_format( $o_COM_GastosImportacionDetBN->getTipoCambio(), 3 )?></td>
        <td align="center"><?=number_format( $o_COM_GastosImportacionDetBN->getMontoDolares(), 2 )?></td>
        <td align="center"><?=number_format( $o_COM_GastosImportacionDetBN->getMontoSoles(), 2 )?></td>
        <td align="center">
            <?php if( $o_COM_GastosImportacionDetBN->getEstado() != COM_OrdenCompraCabeceraBN::ORDEN_COMPRA_COMPLETADO ){ ?>
            <?=addImgButton( "btnDelete.gif", array( "title"=>"Eliminar", "onclick"=>"eliminarGastoImportDet('".$o_COM_GastosImportacionDetBN->getIdOrdenCompra()."', '".$o_COM_GastosImportacionDetBN->getGastosImportacionId()."')", "style"=>"cursor:pointer" ) );?>
            <?php }else{ ?>
                &nbsp;
            <?php } ?>
        </td>
    <?php } ?>
    </tbody>
</table>