
Registered Office:
Shop No. 38, Near Hanuman Mandir,
Avanti Vihar, Raipur – 492001, Chhattisgarh
Head Office:
4th Floor, Office No. 4, RDK Tower,
Bhatagaon, Raipur – 492013, Chhattisgarh
Contact:
7000973950 | 9669578363
QUOTATION
No:
Date:
| S.No. | Service / Description | Qty | Rate (₹) | Amount (₹) | Action |
|---|
Subtotal
₹ 0.00
GST (%)
GST Amount
₹ 0.00
GRAND TOTAL
₹ 0.00
-
Quotation validity:
15
days from date of issue. -
Work will commence after confirmation/approval
and applicable advance payment. -
Third-party charges, advertising spend, hosting,
domain, SMS credits or other external costs are
extra unless specifically included. -
Final deliverables and timelines will be based
on the approved scope of work. -
Additional work outside the approved scope
may be quoted separately.
For Directory World Infotech
Client Acceptance
/* CURRENT DATE */
const today = new Date().toISOString().split("T")[0];
document.getElementById( "documentDate" ).value = today;
/* SERVICES */
const defaultServices = [
"Google Advanced Mapping with SEO",
"Auto Responder SMS",
"Meta Ads Management",
"Bulk SMS / WhatsApp / Automation",
"Website Design & Development",
"Graphic Design / Creative Services",
"Software / App Development",
"NFC Card / Other Digital Solutions"
];
/* ADD SERVICE */
function addRow(description = ""){
const tbody = document.getElementById( "serviceBody" );
const row = document.createElement("tr");
const rowNumber = tbody.children.length + 1;
row.innerHTML = `
`;
tbody.appendChild(row);
calculateTotal();
}
/* REMOVE SERVICE */
function removeRow(button){
button .closest("tr") .remove();
renumberRows();
calculateTotal();
}
/* NUMBERING */
function renumberRows(){
const rows = document.querySelectorAll( "#serviceBody tr" );
rows.forEach( (row,index)=>{
row.children[0] .innerText = index + 1;
} );
}
/* CALCULATE BILL */
function calculateTotal(){
let subtotal = 0;
const rows = document.querySelectorAll( "#serviceBody tr" );
rows.forEach(row=>{
const qty = parseFloat( row.querySelector( ".qty" ).value ) || 0;
const rate = parseFloat( row.querySelector( ".rate" ).value ) || 0;
const amount = qty * rate;
row.querySelector( ".amount" ).innerText = "₹ " + amount.toFixed(2);
subtotal += amount;
});
const gstRate = parseFloat( document.getElementById( "gstRate" ).value ) || 0;
const gst = subtotal * gstRate / 100;
const total = subtotal + gst;
document.getElementById( "subtotal" ).innerText = subtotal.toFixed(2);
document.getElementById( "gstAmount" ).innerText = gst.toFixed(2);
document.getElementById( "grandTotal" ).innerText = total.toFixed(2);
}
/* QUOTATION / BILL */
function changeDocumentType(){
const type = document.getElementById( "documentType" ).value;
const heading = document.getElementById( "documentHeading" );
const number = document.getElementById( "documentNo" );
if(type === "INVOICE"){
heading.innerText = "INVOICE / BILL";
if( number.value .startsWith("QTN-") ){
number.value = number.value.replace( "QTN-", "INV-" );
}
}else{
heading.innerText = "QUOTATION";
if( number.value .startsWith("INV-") ){
number.value = number.value.replace( "INV-", "QTN-" );
}
}
}
/* WHATSAPP */
function sendWhatsApp(){
let mobile = document.getElementById( "clientMobile" ).value .replace(/\D/g,"");
if(!mobile){
alert( "Please enter client WhatsApp number." );
return;
}
/* INDIA PREFIX */
if( mobile.length === 10 ){
mobile = "91" + mobile;
}
const type = document.getElementById( "documentType" ).value;
const number = document.getElementById( "documentNo" ).value;
const client = document.getElementById( "clientName" ).value || "Customer";
const project = document.getElementById( "project" ).value || "Digital Services";
const total = document.getElementById( "grandTotal" ).innerText;
const message =
`Hello ${client},
Thank you for choosing Directory World Infotech.
${type} Details
Document No.: ${number} Service / Project: ${project} Grand Total: ₹${total}
Directory World Infotech Digital Marketing • Technology • Business Growth
Registered Office: Shop No. 38, Near Hanuman Mandir, Avanti Vihar, Raipur – 492001
Contact: 7000973950 | 9669578363
Thank you for your business.`;
const whatsappURL = "https://wa.me/" + mobile + "?text=" + encodeURIComponent( message );
window.open( whatsappURL, "_blank" );
}
/* CLEAR FORM */
function clearForm(){
if( !confirm( "Are you sure you want to clear this bill?" ) ){
return;
}
document.getElementById( "clientName" ).value = "";
document.getElementById( "clientCompany" ).value = "";
document.getElementById( "clientMobile" ).value = "";
document.getElementById( "clientEmail" ).value = "";
document.getElementById( "clientAddress" ).value = "";
document.getElementById( "project" ).value = "";
document.getElementById( "serviceBody" ).innerHTML = "";
addRow();
calculateTotal();
}
/* LOAD DEFAULT SERVICES */
defaultServices.forEach( service => addRow(service) );