/* 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 */ ?>
ALBARÁN FACTURADO |
| 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.
Proveedor |
Fecha |
Nº
Albarán |
echo $lafila["nif"]; ?> |
echo $lafila["codproveedor"]; ?> |
print reconversion($lafila["fecha"]); ?> |
echo $lafila["codalbaran"]; ?> |
$consulta2 = "Select * from albalineap where codproveedor='$codcli' and codalbaran='$codalbaran' order by numlinea"; $resultado2 = mysql_query($consulta2, $conexion); ?>
| Código |
Descripción |
Cantidad |
Precio |
Descuento |
Importe |
|
|
echo $familia; echo $subfamilia; echo $codigoarticulo; ?> |
echo substr($lafila3["descripcion"],0,65); ?> |
$ca= number_format($lafila2["cantidad"],2,",","."); echo $ca; ?> |
$pr1= number_format($lafila2["precio"],2,",","."); echo $pr1; ?> |
if ($lafila2["dcto"]==0) { ?>
} else { ?> | echo $lafila2["dcto"]; ?>% |
} ?>
$impor= number_format($lafila2["importe"],2,",","."); echo $impor; ?> |
$importe=$importe + $lafila2["importe"]; ?>
| Neto |
Cuota
IVA |
Imposición
IVA |
Total |
$importe= number_format($importe,2,",","."); echo $importe; ?>
|
echo $lafila["iva"]; ?>% |
$total=sprintf("%01.2f", $total);
$total2= number_format($total,2,",","."); ?>
echo $impo; ?> |
echo $total2; ?> |
| Observaciones:
print $lafila["observaciones"]; ?>
|
@mysql_free_result($resultado); @mysql_free_result($resultado1); @mysql_free_result($resultado2); @mysql_free_result($resultado3);?>