/* 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: Pedro Obregón Mejías Rubén D. Mancera Morán Versión: 1.0 Fecha Liberación del código: 13/07/2004 Galopín para gnuLinEx 2004 -- Extremadura */ ?>
| FACTURA |
| echo $lafila["nombre"]; ?> |
| echo $lafila["direccion"]; ?> |
| echo $lafila["cp"]; ?> echo $lafila["localidad"]; ?> echo $lafila1["denprovincia"]; ?> |
| NIF | Cod. Proveedor | Fecha | Nº Factura |
| echo $lafila["nif"]; ?> | echo $lafila["codproveedor"]; ?> | print reconversion($lafila["fecha"]); ?> | echo $lafila["codfactura"]; ?> |
$consulta2 = "Select * from factulineap where codfactura='$codfactura' and codproveedor='$codcli' order by numlinea"; $resultado2 = mysql_query($consulta2, $conexion); ?>
| Código | Descripción | Cantidad | Precio | Descuento | Importe | |
| if (($familia=="a") and ($subfamilia=="a")) { ?>
Albarán |
} else { ?>
if (($familia=="a") and ($subfamilia=="a")) { ?>
Albarán nº echo $codigoarticulo; ?> |
} else { ?>
if (($familia=="a") and ($subfamilia=="a")) { ?> | } else { $cantidad= number_format($lafila2["cantidad"],2,",","."); ?>if (($familia=="a") and ($subfamilia=="a")) { ?> | } else { $precio= number_format($lafila2["precio"],2,",","."); ?>} else { ?> | echo $lafila2["dcto"]; ?>% |
} ?>
if (($familia=="a") and ($subfamilia=="a")) { ?> | } else { $importe2= number_format($lafila2["importe"],2,",","."); ?>
echo $lafilap[3]; echo $lafilap[4]; echo $lafilap[5]; ?> |
- echo substr($lafilap["descripcion"],0,65); ?> |
$cantidad2= number_format($lafilap["cantidad"],2,",",".");
?>
=$cantidad2?> |
$precio2= number_format($lafilap["precio"],2,",",".");
?>
=$precio2?> |
if ($lafilap["dcto"]==0) { ?>
} else { ?> | echo $lafilap["dcto"]; ?>% |
} ?>
$importe3= number_format($lafilap["importe"],2,",",".");
?>
=$importe3?> |
$importe=$importe + $lafilap["importe"]; ?>
| Neto |
Cuota
IVA |
Imposición
IVA |
Total |
|
$importe4= number_format($importe,2,",",".");
?>
=$importe4?>
|
echo $lafila["iva"]; ?>% |
$ivai=$lafila["iva"];
$impo=$importe*($ivai/100);
$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; ?> € |
| Observaciones: print $lafila[5]; ?> |
@mysql_free_result($resultado);
@mysql_free_result($resultado1);
@mysql_free_result($resultado2);
@mysql_free_result($resultado3);?>