forked from jino-shaji/jsPDF-GST-Invoice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
124 lines (111 loc) · 3.59 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
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<title>Two tables and header with jspdf-autotable</title>
</head>
<body>
<button onclick="generate_cutomPDF()">Generate PDF</button>
<button onclick="generate_cutomPDF_landscape()">Generate PDF Landscape</button>
<!--
<table id="basic-table" style="display: none;">
<thead>
<tr>
<th width="5%">Product</th>
<th>HSN/SAC</th>
<th>Rate/Item</th>
<th>Qty</th>
<th>Discount</th>
<th>Taxable Value</th>
<th>CGST</th>
<th>SGST</th>
<th>IGST</th>
<th>CESS</th>
<th>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td width="5%" align="right">1. FAST BLACK Hair Dye Shampoo 15ml<br>HSNCODE: 33059040</td>
<td>68054125</td>
<td>2400</td>
<td>20</td>
<td>12</td>
<td>12000</td>
<td>240</td>
<td>240</td>
<td>0</td>
<td>0</td>
<td>192500</td>
</tr>
<tr>
<td width="5%" align="right">2. FAST BLACK Hair Dye Shampoo 15ml<br>HSNCODE: 33059040</td>
<td>68054125</td>
<td>2400</td>
<td>20</td>
<td>12</td>
<td>12000</td>
<td>240</td>
<td>240</td>
<td>0</td>
<td>0</td>
<td>192500</td>
</tr>
<tr>
<td width="5%" align="right">2. item 2</td>
<td>68054125</td>
<td>2400</td>
<td>20</td>
<td>12</td>
<td>12000</td>
<td>240</td>
<td>240</td>
<td>0</td>
<td>0</td>
<td>192500</td>
</tr>
<tr>
<td width="10%" align="right">2. item 2</td>
<td>68054125</td>
<td>2400</td>
<td>20</td>
<td>12</td>
<td>12000</td>
<td>240</td>
<td>240</td>
<td>0</td>
<td>0</td>
<td>192500</td>
</tr>
</tbody>
</table>
<table id="tblInvoiceItemsList" class="ks-table">
<thead>
<tr>
<th>Product</th>
<th class="ks-subtotal">Qty</th>
<th class="ks-subtotal">Rate/Item</th>
<th class="ks-subtotal">Disct</th>
<th width="100" class="ks-subtotal">Subtotal</th>
<th class="ks-subtotal">CGST</th>
<th class="ks-subtotal">SGST</th>
<th class="ks-subtotal">IGST</th>
<th class="ks-subtotal">CESS</th>
<th width="100" class="ks-subtotal">Total</th>
</tr>
</thead>
<tbody><tr><td>1. SAMSUNG GALAXY S8 PLUS 64GB <br>HSNCODE: 330896040</td><td class="ks-subtotal">480</td><td class="ks-subtotal">24.61</td><td class="ks-subtotal">0</td><td class="ks-subtotal">11812.8</td><td class="ks-subtotal">14</td><td class="ks-subtotal">14</td><td class="ks-subtotal">0</td><td class="ks-subtotal">0</td><td class="ks-subtotal">15120.38</td></tr></tbody>
<tfoot><tr><th></th>
<th class="ks-subtotal"></th>
<th class="text-center">Total</th> <th class="ks-subtotal">0.00</th><th class="ks-subtotal">11812.80</th><th class="ks-subtotal">1653.79</th><th class="ks-subtotal">1653.79</th><th class="ks-subtotal">0.00</th><th class="ks-subtotal">0.00</th><th class="ks-subtotal">15120.38</th></tr></tfoot>
</table>
-->
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<!-- <script src='https://cdn.rawgit.com/simonbengtsson/jsPDF/requirejs-fix-dist/dist/jspdf.debug.js'></script> -->
<!-- <script src='https://unpkg.com/[email protected]'></script> -->
<script src="js/jspdf.min.js"></script>
<script src="js/index.js?v=jino_05_11_2017_12"></script>
<script src="js/jspdf.plugin.autotable.js"></script>
<script src="js/jsPdf_Plugins.js"></script>
</body>
</html>