-
Notifications
You must be signed in to change notification settings - Fork 3
/
crearFacturaForm.php
executable file
·128 lines (127 loc) · 6.22 KB
/
crearFacturaForm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
include('session.php');
include('head.html');
include('menu.php');
?>
<link href="css/calendario.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/calendar.js"></script>
<script type="text/javascript" src="js/calendar-es.js"></script>
<script type="text/javascript" src="js/calendar-setup.js"></script>
<script type="text/javascript" src="js/validacion.js"></script>
<script type="text/javascript" src="js/autocompletar_articulos.js"></script>
<h2>Crear Factura</h2>
<h2 style="color:#0F0; background-color:#000">N° OP-00<?php echo $codigo;?></h2>
<div id="crear">
<form name="form" action="crearFacturaFormExecute.php" method="post"
title="Permite Crear una Factura" onsubmit="return validarVacio(this);">
<fieldset id="factura" >
<legend align="center">Datos del Cliente</legend>
<br />
<label for="Nombre">Nombre: </label><input type="text" id="Nombre"
name="Nombre" onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getNombre();?>" />
<br /><br />
<label for="Cedula">Cedula o RIF:</label><input type="text" id="Nacionalidad" name="Nacionalidad" onfocus="limpiar(this);" size="1" onkeypress="return permite(event , 'car')" value="<?php echo $n;?>" readonly="true" /><input type="text" id="Cedula" name="Cedula"
onfocus="limpiar(this);" size="10" value="<?php echo $cedula;?>" readonly="true" />
<label for="Telefono">Telefono: </label><input type="text" id="Telefono"
name="Telefono" onfocus="limpiar(this);" size="12" value="<?php echo $cliente->getTelefono();?>" />
<br /><br />
<label for="Direccion">Direccion: </label><input type="text" id="Direccion"
name="Direccion" onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getDireccion();?>" />
<br /><br />
<label for="Correo">Email: </label><input type="text" id="Correo" name="Correo"
onfocus="limpiar(this);" size="40" value="<?php echo $cliente->getCorreo();?>" />
<br />
<br />
</fieldset>
<fieldset>
<legend align="center">Datos del Pedido</legend>
<label for="productos">
Productos</label>
<input type="button" value="Borrar Todos" onclick="removeall();" style="float:right;" />
<br />
<table id="table" >
<tr class="first">
<td>Cantidad </td>
<td>Nombre </td>
<td>Precio Unitario </td>
<td>Total </td>
</tr>
<tr id="1" >
<td><input type="text" id="cantidad" style="width:24px;"
name="cantidad" value="0" size="1" onfocus="limpiar(this);"
onkeypress="return permite(event , 'num');"</td></td>
<td>
<label for="Nombre">Nombre: </label><input type="text" id="NombreP"
name="NombreP" autocomplete="off" onfocus="limpiar(this);" size="21" />
<div id="sugerencias" class="autocomplete"></div>
</td>
<td><label for="Precio">Precio: </label><input type="text" id="Precio" style="width:24px;"
name="Precio" autocomplete="off" onfocus="limpiar(this);" size="1" value="0" /></td>
<td><input type="button" value="Agregar" onclick="agregar();" />
</td>
</tr>
</table>
</table>
<table align="right" style="width:30%;">
<tr>
<td class="bold">Total</td>
<td id="total" class="bold">0</td>
</tr>
<tr>
<td>Abono</td>
<td class="bold"><input type="text" id="abono" style="width:34px;"
name="abono" autocomplete="off" onfocus="limpiar(this);" size="1"
onblur="abonar(this);" value="0" title="El minimo del abono es de 20%"
onkeypress="return permite(event , 'num');" /></td>
</tr>
<tr>
<td class="bold">Resta</td>
<td id="resta" class="bold">0</td>
</tr>
</table>
<br />
<br />
<br />
<br />
<br />
<label for="Detalles">Detalles de Diseño y Produccion </label><br />
<textarea id="Detalles" name="Detalles" cols="60" rows="5" onfocus="limpiar(this);
limpiarD(this);">Aqui se agregan los detalles del pedido.</textarea>
<br />
<br />
<label for="Tipo_Pago">Tipo de Pago</label>
<select id="Tipo_Pago" name="Tipo_Pago" onchange="validarNTipoEnvio(this);" onfocus="limpiarS(this);" >
<option value="" > - - </option>
<option >Efectivo</option>
<option >Deposito</option>
<option >Transferencia</option>
<option >Cheque</option>
</select>
<label for="NTipo_Pago">Numero: </label><input type="text" id="NTipo_Pago"
name="NTipo_Pago" onfocus="limpiar(this);" size="10" disabled="disabled" />
<label for="Fecha_Entrega">Fecha de Entrega: </label><input type="text" id="Fecha_Entrega"
name="Fecha_Entrega" class="for_txtInputFecha" onfocus="limpiar(this);" size="9"
value="" tabindex="2" readonly="readonly" />
<img class="for_imgFecha" id="ImgFecha_Entrega" src="calendario/calendario.png"
title="Seleccione fecha" alt="Imagen del Calendario" aling="top" />
<script type="text/javascript">
Calendar.setup({inputField:"Fecha_Entrega", button:"ImgFecha_Entrega"});
Calendar.setup({inputField:"Fecha_Entrega", eventName: "click", button:"ImgFecha_Entrega"});
</script>
<br />
<br />
<table width="200" border="1" align="center">
<tr>
<td width="0" height="0" align="center" bgcolor="#0099FF"><input type="submit" value="Facturar" onclick="clickEnviar();" /></td>
<td align="center" bgcolor="#CC0000"><input type="button" value="Cancelar" onclick="ir('facturacion.php');" /></td>
</tr>
</table>
</fieldset>
</form>
</div>
</div>
<?php
include('menuFacturacion.php');
include('foot.html');
?>