/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Autores: Galopin Pedro Obregón Mejías Rubén D. Mancera Morán Factusyn Luis Ignacio Albacete Fecha Liberación del código: 15/10/2007 Factusyn 2007 -- Murcia */ ?>
Pedido Web |
echo $lafila1["nombre"]; ?> |
echo $lafila1["direccion"]; ?> |
echo $lafila["referenc1"]; ?> echo $lafila["campo1"]; ?> |
Tlf: echo $lafila1["telefonos"]; ?> Fax: echo $lafila1["numerofax"]; ?> |
RIF |
Cod.
Cliente |
Fecha |
Nº Pedido Web |
Nº Pedido Premium |
echo $lafila1["nrorif"]; ?> |
echo $lafila1["codigo"]; ?> |
print reconversion($lafila["fecha"]); ?> |
echo $lafila["codpresupuesto"]; ?> |
echo $lafila["codcosa"]; ?> |
$descriptor=mysql_select_db($BaseDeDatos,$conexion); $consulta2 = "Select * from presupuestolinea where codpresupuesto='$codpresupuesto' order by numlinea"; $resultado2 = mysql_query($consulta2, $conexion); ?>
Código |
Descripción |
Cantidad |
Precio |
Descuento |
% echo $impuestos; ?> |
Importe |
|
echo $codigoarticulo; ?> |
echo substr($descripcion,0,65); ?> |
$cantidad= number_format($lafila2["cantidad"],2,",","."); ?> | $precio= number_format($lafila2["precio"],2,",","."); ?> | if ($lafila2["dcto"]==0) { ?>} else { ?> | echo $lafila2["dcto"]; ?>% |
$iva= number_format($lafila2["iva"],1,",","."); ?> | } ?>$importe2= number_format($lafila2["importe"],2,",","."); ?> | $importe=$importe + $lafila2["importe"]; ?>
Neto |
Cuota
echo $impuestos; ?> |
Total |
$importe3= number_format($importe,2,",",".");
?>
|
$ivai=$lafila["iva"];
// $impo=$importe*($ivai/100);
$impo=$importeiva;
$impo=sprintf("%01.2f",$impo);
$total=$importe+$impo;
$impo= number_format($impo,2,",",".");
?>
echo $impo; ?> |
$total=sprintf("%01.2f",$total);
$total2= number_format($total,2,",",".");
?>
echo $total2; ?>
echo $moneda; ?> |
Observaciones: print $lafila[6]; ?> |
@mysql_free_result($resultado); @mysql_free_result($resultado1); @mysql_free_result($resultado2); @mysql_free_result($resultado3);?>