function smarty_function_info_cliente_erp($params, &$smarty)
{
    $rowid_cliente = $params['rowid_cliente'];
    $id_sucursal = $params['id_sucursal'];
    $Info = FnErp::getInfoClienteERP($rowid_cliente, $id_sucursal);
    $Html = '<table class="table table-striped table-bordered table-condensed">';
    $Html .= '<thead><tr class="info">';
    $Html .= '<th>Cupo disponible</th><th>Condición de Pago</th><th>Descuento por pago</th><th>Lista de Precio</th>';
    $Html .= '</tr></thead>';
    $Html .= '<tbody><tr>';
    $Html .= '<td style="text-align:right">$ ' . number_format($Info[0]['cupo_credito']) . '</td><td style="text-align:center">' . $Info[0]['cond_pago'] . '</td><td>' . utf8_encode($Info[0]['DSCTO']) . '</td><td>' . utf8_encode($Info[0]['LISTA_PRE']) . '</td>';
    $Html .= '</tr></tbody>';
    $Html .= '</table>';
    return $Html;
}