-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (77 loc) · 3.13 KB
/
index.html
File metadata and controls
83 lines (77 loc) · 3.13 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voice Billing App</title>
<link rel="stylesheet" href="styles.css">
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
</head>
<body>
<div class="container">
<h1>Voice Billing App</h1>
<div class="voice-controls">
<button id="startBtn" class="btn">Start Voice Input</button>
<button id="clearBtn" class="btn btn-clear">Clear Bill</button>
<div id="status" class="status">Status: Ready</div>
</div>
<div class="manual-entry">
<h2>Manual Entry</h2>
<div class="form-group">
<input type="text" id="itemName" placeholder="Item Name">
<input type="number" id="itemQuantity" placeholder="Quantity" min="1" value="1">
<input type="number" id="itemPrice" placeholder="Price" min="0" step="0.01">
<button id="addItemBtn" class="btn">Add Item</button>
</div>
</div>
<div class="bill-section">
<div class="bill-header">
<h2>Current Bill</h2>
<div class="customer-info">
<input type="text" id="customerName" placeholder="Customer Name">
<input type="text" id="customerPhone" placeholder="Customer Phone">
</div>
</div>
<table id="billTable">
<thead>
<tr>
<th>Item</th>
<th>Quantity</th>
<th>Price</th>
<th>Total</th>
<th>Action</th>
</tr>
</thead>
<tbody id="billItems">
<!-- Items will be added here dynamically -->
</tbody>
<tfoot>
<tr>
<td colspan="3" class="total-label">Subtotal</td>
<td id="subtotal">0.00</td>
<td></td>
</tr>
<tr>
<td colspan="3" class="total-label">Tax (10%)</td>
<td id="tax">0.00</td>
<td></td>
</tr>
<tr class="grand-total">
<td colspan="3" class="total-label">Total</td>
<td id="total">0.00</td>
<td></td>
</tr>
</tfoot>
</table>
</div>
<div class="qr-section">
<h2>Share Bill</h2>
<button id="generateQRBtn" class="btn">Generate QR Code</button>
<div id="qrCode"></div>
<div id="billLink"></div>
<button id="previewBtn" class="btn">Preview Customer Bill</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>