<tr nobr="true"> <th><h3>Ref</h3></th> <th colspan="2"><h3>Descripción</h3></th> <!-- <th><h3>Valor Unitario</h3></th> --> <th><h3>Cantidad</h3></th> <!-- <th><h3>Dias</h3></th> <th><h3>Total</h3></th> --> <th><h3>F. Dev.</h3></th> <th><h3>C. Dev.</h3></th> </tr> </table> EOD; $pdf->writeHTML($tbl, false, false, false, false, ''); //////////////////////////////////////////////////////// $PesoTotal = $obVenta->CalculePesoRemision($DatosRemision['Cotizaciones_idCotizaciones']); $Consulta = $obVenta->ConsultarTabla("cot_itemscotizaciones", "WHERE NumCotizacion='{$DatosRemision['Cotizaciones_idCotizaciones']}'"); $Subtotal = 0; $IVA = 0; $Total = 0; $h = 0; while ($registros2 = mysql_fetch_array($Consulta)) { $Subtotal = $Subtotal + $registros2["Subtotal"]; $IVA = $IVA + $registros2["IVA"]; $Total = $Total + $registros2["Total"]; $registros2["Total"] = number_format($registros2["Total"]); $registros2["Subtotal"] = number_format(round($registros2["Subtotal"])); $registros2["ValorUnitario"] = number_format(round($registros2["ValorUnitario"])); if ($h == 0) { $Back = "#f2f2f2"; $h = 1;