-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (50 loc) · 1.28 KB
/
Copy pathindex.html
File metadata and controls
54 lines (50 loc) · 1.28 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css.css">
<title>Facturas</title>
</head>
<div>
<h3>Introducción de productos</h3>
<label for="producto">Producto:</label>
<input type="text" id="producte" />
<label for="cantidad">Cantidad:</label>
<input type="number" id="quantitat" value="0" />
<label for="precio-unitario">Precio:</label>
<input type="number" id="preu" value="0" />
<button onclick="insertarFila()">Añadir</button>
</div>
<table rules="groups" id="tabla">
<thead>
<tr>
<th>Producto</th>
<th>Cantidad</th>
<th>Precio</th>
<th>Total</th>
<th></th>
</tr>
</thead>
<tfoot>
<tr>
<th colspan="4">Base imponible</th>
<th><span id="base-imponible">0</span>€</th>
</tr>
<tr>
<th colspan="4" data-iva="0.21">IVA 21%</th>
<th><span id="iva">0</span>€</th>
</tr>
<tr>
<th colspan="4">Total factura</th>
<th><span id="total">0</span>€</th>
</tr>
</tfoot>
<tbody>
</tbody>
</table>
<button onclick="eliminarFila()">Borrar Fila</button>
<script src="js.js"></script>
<body>
</html>