forked from Zzzul/transaction-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
317 lines (285 loc) · 16.8 KB
/
index.html
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- ico icon -->
<link rel="icon" href="img/10.ico">
<!-- bootstrap -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<!-- jquery ui -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css"
integrity="sha512-urpIFwfLI9ZDL81s6eJjgBF7LpG+ROXjp1oNwTj4gSlCw00KiV1rWBrfszV3uf5r+v621fsAwqvy1wRJeeWT/A=="
crossorigin="anonymous" />
<!-- sweetalert 2 -->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@9.17.1/dist/sweetalert2.min.css"
integrity="sha256-KpQHAI/AubL4JrO3VYskOgqSm+Z9nzrIqWB1dTOfCK4=" crossorigin="anonymous"> -->
<!-- select2 -->
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
<link rel="stylesheet" href="css/select2-bootstrap4.min.css">
<!-- font awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
integrity="sha512-1PKOgIY59xJ8Co8+NE6FZ+LOAZKjy+KY8iq0G4B3CyeY6wYHN3yt9PW0XpSriVlkMXe40PTKnXrLnZ9+fkDaog=="
crossorigin="anonymous" />
<title>Transaksi Penjualan</title>
</head>
<!-- beberapa plugin/library yang dipakai menngunakan cdn pastikan komputer/laptop kamu terhubung dengan internet -->
<body class="bg-success">
<div class="container-fluid my-5">
<div class="card m-0 shadow">
<div class="card-header bg-white">
<h5 class="card-title mb-0">
<ol class="breadcrumb float-sm-left bg-white p-1 m-0">
<li class="breadcrumb-item"><a href="#">Transaksi</a></li>
<li class="breadcrumb-item active">
<i class="fas fa-shopping-basket mr-1"></i>
Penjualan barang
</li>
</ol>
</h5>
<a href="#" id="btnresetlist" class=" btn btn-dark btn-sm float-right m-0"><i class="fa fa-sync p-1 m-0"></i></a>
</div>
<!-- end of card-header bg-white-->
<div class="card-body">
<div class="row">
<div class="col-md-3 pr-0 col-sm-12">
<div class="card mr-0">
<div class="card-header bg-info text-white">
<div class="card-title p-0 m-0">
<i class="fa fa-file mr-2"></i>Invoice
</div>
</div>
<div class="card-body px-2 py-1">
<table class="table table-sm mb-0">
<tr>
<td>No Invoice</td>
<td><strong id="strong_no_invoice"></strong>
<input type="hidden" name="no_invoice" value="">
</td>
</tr>
<tr>
<td>Tanggal</td>
<td id="td_tanggal">
<input type="hidden" name="tanggal" value="">
</td>
</tr>
<tr>
<td>Kasir</td>
<td>John Doe
<input type="hidden" name="kasir" value="1">
</td>
</tr>
</table>
</div>
</div>
<!-- end of card invoice -->
<div class="card mt-3 mb-3">
<div class="card-header bg-info text-white">
<div class="card-title p-0 m-0">
<i class="fa fa-users mr-2"></i>Customer
</div>
</div>
<div class="card-body px-2 py-1">
<table class="table table-sm mb-1">
<tr class="mt-1">
<td>Nama Customer</td>
<td>
<select class="form-control" name="customer" id="customer">
<option value="0">Umum</option>
<option value="1">Giorno Giovanna</option>
<option value="2">Dio Brando</option>
<option value="3">Jonathan Joestar</option>
<option value="4">Tanya Von Degurechaff</option>
<option value="5">Alphonse Elric</option>
</select>
</td>
</tr>
<tr>
<td>No Telepon</td>
<td>
<input type="text" id="no_telp" class="form-control font-italic"
placeholder="Tidak ada" disabled style="cursor: not-allowed;">
</td>
</tr>
<tr>
<td>Alamat</td>
<td>
<textarea id="alamat" class="form-control font-italic"
placeholder="Tidak ada" disabled style="cursor: not-allowed;"
rows="2"></textarea>
</td>
</tr>
<tr>
<td>Info lainnya</td>
<td>
<textarea id="info_ln" class="form-control font-italic"
placeholder="Tidak ada" disabled style="cursor: not-allowed;"
rows="2"></textarea>
</td>
</tr>
</table>
</div>
</div>
<!-- end of card custome -->
</div>
<!-- end of col-md-3 pr-0 col-sm-12 -->
<div class="col-md-9">
<div class="alert bg-info p-2 pr-3 " role="alert">
<h2 class="m-0 p-0 text-right text-dark font-weight-bold" id="grandTotal">
GRAND TOTAL
:
Rp. 0,-</h2>
<input type="hidden" name="grandtotal">
</div>
<!-- end of alert -->
<table id="tblTransaksi" class="table table-sm table-hover table-bordered">
<thead>
<tr>
<th width="25px">No.</th>
<th width="185px">Kode Barang</Oh>
<th>Nama Barang</Oh>
<th>Harga</th>
<th width="85x">Qty</th>
<th>Subtotal</th>
<th width="60px">Aksi</th>
</tr>
<tr>
<td>
<p id="no_head">#</p>
</td>
<td width="282px" colspan="2">
<input type="text" class="form-control" placeholder="Kode / Nama Barang"
autofocus id="input_kode" value="" tabindex="1">
<input type="hidden" class="form-control" id="nama_barang_hide" value="">
<input type="hidden" class="form-control" id="id_barang_head" value="">
<input type="hidden" class="form-control" id="tgl_exp" value="">
<input type="hidden" class="form-control" id="input_kode2" value="">
<input type="hidden" class="form-control" placeholder="Stok" id="stok_head"
disabled>
</td>
<td width="153px">
<input type="hidden" id="harga_head">
<input type="text" class="form-control" placeholder="Rp(harga)"
id="harga_head_tampil" disabled style="cursor: not-allowed;">
</td>
<td width="83px">
<input type="number" class="hanya-angka form-control" id="qty_head"
placeholder="Qty" value="" min="1" tabindex="2" disabled
style="cursor: not-allowed;">
</td>
<td>
<input type="hidden" value="" id="subtotal_head">
<input type="text" class="form-control" placeholder="Rp(subtotal)" value=""
id="subtotal_head_tampil" disabled style="cursor: not-allowed;">
</td>
<td width="60px">
<button class="btn btn-info" id="btnAdd" tabindex="3" disabled><i
class="fas fa-plus"></i></button>
</td>
</tr>
</thead>
<tbody id="tbodyTransaksi">
</tbody>
</table>
<div class="row">
<!-- kalo mau grandtotal tampil dibawah koding ini bisa di-uncomment dan comment koding yang diatas -->
<!-- <div class="col-md-12">
<div class="alert bg-info p-2 pr-3" role="alert">
<h2 class="m-0 p-0 text-right text-dark font-weight-bold" id="grandTotal">GRAND
TOTAL :
Rp. 0,-</h2>
<input type="hidden" name="grandtotal">
</div>
</div> -->
<div class="col-md-5">
<textarea id="catatan" class="form-control form-control-sm font-italic mt-1 mb-3"
placeholder="Catatan (jika ada)" name="catatan" rows="4"
style="font-size: 16px"></textarea>
</div>
<div class="col-md-2"></div>
<div class="col-md-5">
<table class="mt-1">
<tr>
<td>
<p class="font-weight-bold text-right mr-3">Bayar</p>
</td>
<td colspan="2">
<div class="input-group input-group-lg mb-2 text-dark inputBayarDiv">
<div class="input-group-prepend">
<span class="input-group-text font-weight-bold">Rp.</span>
</div>
<input type="text" id="inputBayar" class="form-control font-weight-bold"
min="1">
<input type="hidden" name="bayar">
</div>
</td>
</tr>
<tr>
<td>
<p class="font-weight-bold text-right mr-3">Kembali</p>
</td>
<td colspan="2">
<div class="input-group input-group-lg">
<div class="input-group-prepend">
<span class="input-group-text font-weight-bold">Rp.</span>
</div>
<input type="text" id="kembalian" class="form-control font-weight-bold"
aria-label="Sizing example input"
aria-describedby="inputGroup-sizing-lg" disabled
style="cursor: not-allowed;">
<input type="hidden" id="kembalianHidden" name="kembalian">
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="col-md-7"></div>
<div class="col-md-5 text-right mt-3">
<button class="btn btn-danger ml-1" id="btnBatal"><i
class="fa fa-trash pr-2"></i>Batal</button>
<button class="btn btn-info ml-1" id="btnSimpan" disabled><i
class="fa fa-save pr-2"></i>Simpan</button>
<button class="btn btn-primary ml-1" id="btnCetak" disabled><i
class="fa fa-print pr-2"></i>Cetak</button>
</div>
</div>
<!-- end of row -->
</div>
<!-- end of col-md-9 -->
</div>
<!-- end of row -->
</div>
<!-- end of card-body(utama) -->
</div>
<!-- end of card m-0 -->
</div>
<!-- end of container -->
</body>
<!-- Popper.js -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous">
</script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous">
</script>
<!-- jquery ui -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"
integrity="sha512-uto9mlQzrs59VwILcLiRYeLKPPbS/bT71da/OEBYEwcdNUk8jYIy+D176RYoop1Da+f9mvkYrmj5MCLZWEtQuA=="
crossorigin="anonymous"></script>
<!-- jquery mask -->
<script src="js/jquery.mask.min.js"></script>
<!-- select2 -->
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/js/select2.min.js"></script>
<!-- sweetalert2 -->
<script src="js/sweetalert2.all.min.js"></script>
<!-- custom script -->
<script src="js/my-script.js"></script>
</html>