Spaces:
Sleeping
Sleeping
Commit
·
94dc12a
1
Parent(s):
409f62b
add: gstin number
Browse files- index.html +2 -0
- script.js +11 -5
index.html
CHANGED
@@ -18,6 +18,7 @@
|
|
18 |
<textarea id="company-address" name="company-address" placeholder="Address" required></textarea>
|
19 |
<input type="text" id="company-phone" name="company-phone" placeholder="Phone">
|
20 |
<input type="email" id="company-email" name="company-email" placeholder="Email">
|
|
|
21 |
</fieldset>
|
22 |
<fieldset>
|
23 |
<legend>Customer Company Details</legend>
|
@@ -25,6 +26,7 @@
|
|
25 |
<textarea id="customer-address" name="customer-address" placeholder="Address" required></textarea>
|
26 |
<input type="text" id="customer-phone" name="customer-phone" placeholder="Phone">
|
27 |
<input type="email" id="customer-email" name="customer-email" placeholder="Email">
|
|
|
28 |
</fieldset>
|
29 |
<fieldset>
|
30 |
<legend>Quotation Details</legend>
|
|
|
18 |
<textarea id="company-address" name="company-address" placeholder="Address" required></textarea>
|
19 |
<input type="text" id="company-phone" name="company-phone" placeholder="Phone">
|
20 |
<input type="email" id="company-email" name="company-email" placeholder="Email">
|
21 |
+
<input type="text" id="company-gstin" name="company-gstin" placeholder="GSTIN">
|
22 |
</fieldset>
|
23 |
<fieldset>
|
24 |
<legend>Customer Company Details</legend>
|
|
|
26 |
<textarea id="customer-address" name="customer-address" placeholder="Address" required></textarea>
|
27 |
<input type="text" id="customer-phone" name="customer-phone" placeholder="Phone">
|
28 |
<input type="email" id="customer-email" name="customer-email" placeholder="Email">
|
29 |
+
<input type="text" id="customer-gstin" name="customer-gstin" placeholder="GSTIN">
|
30 |
</fieldset>
|
31 |
<fieldset>
|
32 |
<legend>Quotation Details</legend>
|
script.js
CHANGED
@@ -74,13 +74,15 @@ if (typeof document !== 'undefined') {
|
|
74 |
name: data.get('company-name'),
|
75 |
address: data.get('company-address'),
|
76 |
phone: data.get('company-phone'),
|
77 |
-
email: data.get('company-email')
|
|
|
78 |
};
|
79 |
const customer = {
|
80 |
name: data.get('customer-name'),
|
81 |
address: data.get('customer-address'),
|
82 |
phone: data.get('customer-phone'),
|
83 |
-
email: data.get('customer-email')
|
|
|
84 |
};
|
85 |
const quotationNumber = data.get('quotation-number');
|
86 |
const quotationDate = data.get('quotation-date');
|
@@ -117,8 +119,8 @@ if (typeof document !== 'undefined') {
|
|
117 |
<div class="company-details">
|
118 |
<strong>${company.name}</strong><br>
|
119 |
{{address}}<br>
|
120 |
-
GST NO. : <br>
|
121 |
-
CONTACT NO : ${company.phone}
|
122 |
</div>
|
123 |
<div class="quotation-title">
|
124 |
<h1>QUOTATION</h1>
|
@@ -137,7 +139,10 @@ if (typeof document !== 'undefined') {
|
|
137 |
|
138 |
<div class="customer-info">
|
139 |
<strong>CUSTOMER INFO</strong><br>
|
140 |
-
${customer.name}
|
|
|
|
|
|
|
141 |
</div>
|
142 |
|
143 |
<table class="items-table-print">
|
@@ -223,6 +228,7 @@ if (typeof document !== 'undefined') {
|
|
223 |
</div>
|
224 |
`;
|
225 |
html = html.replace('{{address}}', company.address.replace(/\n/g, '<br>'));
|
|
|
226 |
output.innerHTML = html;
|
227 |
output.style.display = 'block';
|
228 |
document.getElementById('form-container').style.display = 'none';
|
|
|
74 |
name: data.get('company-name'),
|
75 |
address: data.get('company-address'),
|
76 |
phone: data.get('company-phone'),
|
77 |
+
email: data.get('company-email'),
|
78 |
+
gstin: data.get('company-gstin')
|
79 |
};
|
80 |
const customer = {
|
81 |
name: data.get('customer-name'),
|
82 |
address: data.get('customer-address'),
|
83 |
phone: data.get('customer-phone'),
|
84 |
+
email: data.get('customer-email'),
|
85 |
+
gstin: data.get('customer-gstin')
|
86 |
};
|
87 |
const quotationNumber = data.get('quotation-number');
|
88 |
const quotationDate = data.get('quotation-date');
|
|
|
119 |
<div class="company-details">
|
120 |
<strong>${company.name}</strong><br>
|
121 |
{{address}}<br>
|
122 |
+
GST NO. : ${company.gstin || ''}<br>
|
123 |
+
CONTACT NO : ${company.phone} ${company.email}
|
124 |
</div>
|
125 |
<div class="quotation-title">
|
126 |
<h1>QUOTATION</h1>
|
|
|
139 |
|
140 |
<div class="customer-info">
|
141 |
<strong>CUSTOMER INFO</strong><br>
|
142 |
+
${customer.name}<br>
|
143 |
+
{{cutomer_address}}<br>
|
144 |
+
GST NO. : ${customer.gstin || ''}<br>
|
145 |
+
CONTACT NO : ${customer.phone} ${customer.email}
|
146 |
</div>
|
147 |
|
148 |
<table class="items-table-print">
|
|
|
228 |
</div>
|
229 |
`;
|
230 |
html = html.replace('{{address}}', company.address.replace(/\n/g, '<br>'));
|
231 |
+
html = html.replace('{{cutomer_address}}', company.address.replace(/\n/g, '<br>'));
|
232 |
output.innerHTML = html;
|
233 |
output.style.display = 'block';
|
234 |
document.getElementById('form-container').style.display = 'none';
|