-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
executable file
·103 lines (103 loc) · 3.58 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
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"></script>
<script type="text/javascript" src="index.js"></script>
<title></title>
</head>
<style>
body {
background-color: #d3d3d3;
}
input[type="checkbox"]{
width: 20px;
height: 20px;
cursor: pointer;
}
button{
cursor: pointer;
}
.itembox {
float: left;width: 400px;
}
.myfieldset {
border: solid #d3d3d3 5px;
}
.boxfieldset {
border: solid #005662 5px;
max-width: 1200px;
margin: 0 auto;
background-color: #00838f;
}
.itemfieldset {
border: solid #008ECC 5px;
}
.card {
background-color: #005662;
color: white;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
transition: 0.3s;
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.8);
}
.card2 {
background-color: #1446A0;
color: white;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.4);
transition: 0.3s;
}
.card2:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.8);
}
</style>
<body>
<fieldset class="boxfieldset">
<legend style="text-align: center;font-size: 40px;color: #005662;background-color: #d3d3d3;font-weight: bold;">TS INDUSTRIES INVOICE</legend>
<form name="myForm" method="post">
<div style="text-align: center;">
<fieldset class="card myfieldset" style="display:inline;max-width: 200px">
<legend style="text-align: center;">INVOICE DETAILS</legend>
INVOICE NUMBER: <br><input type="number" name="invn"><br><br>
INVOICE DATE: <br><input type="date" name="invd"><br><br>
Transport Details: <br><input type="text" name="trans"><br><br>
Vehicle Number: <br><input type="text" name="vehnum"><br><br>
</fieldset>
<fieldset class="card myfieldset" style="display:inline;max-width: 200px">
<legend style="text-align: center;">CONSIGNEE DETAILS</legend>
Details of Consignee/Billed to:<br><textarea name="billto" rows="12" cols="60"></textarea><br>
</fieldset>
<fieldset class="card myfieldset" style="max-width: 300px;display:inline;">
<legend>ADDITIONAL VALUES</legend>
CARRIAGE OUTWARD: <br><input type="number" step="0.01" name="carrout" value="0"><br>
Transport/packing/other charges: <br><input type="number" step="0.01" name="otherchg" value="0"><br><br>
<input type="checkbox" name="igstq"> APPLY IGST(18%)<br><br>
<input type="checkbox" name="sgstq"> APPLY SGST(9%)<br><br>
<input type="checkbox" name="cgstq"> APPLY CGST(9%)<br><br>
LESS ADVANCE: <br><input type="number" step="1" name="lessadv" value="0"><br>
</fieldset>
</div>
</form>
<fieldset class="card myfieldset" style="margin: 15px auto;text-align: center;max-width: 200px">
<legend>ITEM BUTTONS</legend>
<div id="itembuttons" style="text-align: center;padding-bottom: 20px">
<button style="background-color:#F1C40F;padding: 10px;" onclick="addItem()"><span>ADD NEW ITEM</span></button>
</div>
</fieldset>
<form name="myForm2" method="post">
<div id="items"
style="
display: flex;
flex-wrap: wrap;
max-width: 800px;
margin: 0 auto;
text-align: center;">
</div>
</form>
<div style="text-align: center;padding-bottom: 20px">
<button style="background-color:#c7ea46;padding: 10px;" onclick="validateFormUtil()"><span>CHECK AMOUNT</span></button>
<button style="background-color:#0b6623;padding: 10px;" onclick="validateForm(true)"><span style="font-size: 20px;color: white">PRINT INVOICE</span></button>
</div>
</fieldset>
</body>
</html>