コード例 #1
0
    $anio = $row['FY'];
    $condiciones = $row['CONDICIONES'];
    $pedido = $row['PEDIDO_CLIENTE'];
    $paridad = formato_moneda($row['PARIDAD'], 2);
    $tipo_cambio = $row['MONEDA'];
    $atencion = $row['ATENCION_A'];
    $departamento = $row['DEPARTAMENTO'];
    $subtotal = $row['MONTO'];
    $descuento = $row['DESCUENTO'];
    $iva = $row['IVA'];
    $total = $row['TOTAL'];
    $observa = utf8_encode($row['COMENTARIOS']);
}
$numletra = new CNumeroaLetra();
if ($tipo_cambio == "USD") {
    $numletra->setMoneda("DOLARES");
    $numletra->setSufijo("U.S.D.***)");
}
$numletra->setNumero($total);
$cant_letra = $numletra->letra();
$subtotal = formato_moneda($subtotal, 2);
$descuento = formato_moneda($descuento, 2);
$iva = formato_moneda($iva, 2);
$total = formato_moneda($total, 2);
//------------------------------------------------------------------------------------------------
$cabezera = '
<table width="760" border="0" cellspacing="5" cellpadding="5" align="center">
    <tr>
        <td width="465" valign=""><!--<img src="../images/' . CONFIG("EMP_LOGO") . '" width="230">--></td>
        <td width="250" valign="bottom" align="right">
          <table width="250" border="0" cellspacing="0" cellpadding="0" align="right">