/* 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: 03/08/2006 Factusyn 2006 -- Murcia */ ?>
PARTE ALBARANIZADO |
echo $lafila["nombre"]; ?> |
echo $lafila["direccion"]; ?> |
echo $lafila["cp"]; ?> echo $lafila["localidad"]; ?> echo $lafila1["denprovincia"]; ?> |
Tlf: echo $lafila["telefono"]; ?> Fax: echo $lafila["fax"]; ?> |
NIF |
Cod.
Cliente |
Fecha |
Nº Parte |
echo $lafila["nif"]; ?> |
echo $lafila["codcliente"]; ?> |
print reconversion($lafila["fecha"]); ?> |
echo $lafila["codparte"]; ?> |
$consulta2 = "Select * from partelinea where codparte='$codparte' order by numlinea"; $resultado2 = mysql_query($consulta2, $conexion); ?>
Traba/Código |
Descripción |
Cantidad |
Precio |
Descuento |
Importe |
|
echo $codoper,"/"; echo $familia; echo $subfamilia; 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"]; ?>% |
} ?>
$importe2= number_format($lafila2["importe"],2,",","."); ?> | $importe=$importe + $lafila2["importe"]; ?>
Tarea |
echo $observa; ?>
|
}
while ($contador<=10) { ?>
Neto |
Cuota
echo $impuestos; ?> |
Imposición
echo $impuestos; ?> |
Total |
$importe3= number_format($importe,2,",",".");
?>
|
echo $lafila["iva"]; ?>% |
$ivai=$lafila["iva"];
$impo=$importe*($ivai/100);
$total=$importe+$impo;
$impo= number_format($impo,2,",",".");
?>
?> |
$total=sprintf("%01.2f",$total);
$total2= number_format($total,2,",",".");
?>
echo $moneda; ?> |
Observaciones: print $lafila[6]; ?> |
@mysql_free_result($resultado); @mysql_free_result($resultado1); @mysql_free_result($resultado2); @mysql_free_result($resultado3);?>