LedgerX cloud accounting software
LedgerX cloud accounting software
FREE BUSINESS TOOL

Quotation Generator

Create a customer-ready quotation in one workspace. Add business and customer details, item pricing, discounts and GST, then download a professional quotation PDF.

QUOTATION
01

Your business

02

Prepared for

03

Quotation information

04

Items and services

Item / description *HSN/SACQtyRate (₹)GSTAmount

Discount is applied proportionally before GST. Confirm the applicable tax treatment and commercial terms before sending.

05

Terms and notes

This quotation is an offer and is not a tax invoice. Review the details and applicable tax treatment before sharing.

Live quotation preview
PDF OUTPUT

Quotation preview

QUOTATION GUIDE

Create a quotation online

Prepare a clear quotation for a customer by entering your business details, customer information, quotation validity, item pricing, discounts and applicable GST. Review the preview before downloading the PDF.

What is a quotation?

A quotation sets out the proposed products or services, prices and commercial terms offered to a customer. It helps both parties review the scope and expected amount before confirming an order.

Details to include

  • Business and customer details
  • Quotation number, date and validity
  • Product or service descriptions
  • Quantities, rates, discounts and GST
  • Delivery, payment and other terms

Quotation and tax invoice

A quotation communicates proposed prices and terms. It is not a tax invoice and should not be treated as proof that a taxable supply has been invoiced.

Review before sharing

Check the customer details, item descriptions, quantities, rates, discount, GST treatment and validity date. Confirm that the terms match the offer you intend to make.

Important: This tool prepares a quotation document. It does not verify GSTINs, validate tax rates or determine the correct tax treatment for your transaction.
(()=>{const $=id=>document.getElementById(id),tb=$('items'),now=new Date(),today=new Date(now.getTime()-now.getTimezoneOffset()*60000).toISOString().slice(0,10);$('date').value=today;$('number').value='QT-'+now.getFullYear()+'-'+String(now.getMonth()+1).padStart(2,'0')+String(now.getDate()).padStart(2,'0')+'-001'; const esc=s=>String(s??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])),money=n=>new Intl.NumberFormat('en-IN',{style:'currency',currency:'INR',minimumFractionDigits:2,maximumFractionDigits:2}).format(Number(n)||0); function add(d={}){let tr=document.createElement('tr');tr.innerHTML=`₹0.00`;tb.appendChild(tr);tr.querySelectorAll('input,select').forEach(x=>x.addEventListener('input',render));tr.querySelector('.remove').onclick=()=>{if(tb.children.length>1)tr.remove();else{tr.querySelector('.desc').value='';tr.querySelector('.rate').value=0;tr.querySelector('.qty').value=1}render()};render()} const get=()=>[...tb.querySelectorAll('tr')].map(tr=>({d:tr.querySelector('.desc').value.trim(),c:tr.querySelector('.code').value.trim(),q:Math.max(0,+tr.querySelector('.qty').value||0),r:Math.max(0,+tr.querySelector('.rate').value||0),g:+tr.querySelector('.gst').value||0})).map(x=>({...x,base:x.q*x.r})); function render(){let arr=get(),base=arr.reduce((s,x)=>s+x.base,0),dp=Math.min(100,Math.max(0,+$('discount').value||0)),discount=base*dp/100,taxable=0,cg=0,sg=0,ig=0,rows=arr.map(x=>{let v=x.base*(1-dp/100),t=v*x.g/100;taxable+=v;if($('tax').value==='inter')ig+=t;else{cg+=t/2;sg+=t/2}return `${esc(x.d||'—')}${x.c?`
HSN/SAC: ${esc(x.c)}
`:''}${x.q.toLocaleString('en-IN',{maximumFractionDigits:3})}${money(x.r)}${x.g}%${money(v)}`}).join('');[...tb.querySelectorAll('tr')].forEach((tr,i)=>tr.querySelector('.amount').textContent=money(arr[i].base));let tax=cg+sg+ig,total=taxable+tax;const rail=$('railTotal');if(rail)rail.textContent=money(total);let taxrows=$('tax').value==='inter'?`IGST${money(ig)}`:`CGST${money(cg)}SGST${money(sg)}`; $('preview').innerHTML=`

${esc($('seller').value||'Your Business Name')}

${esc($('saddress').value).replace(/\\n/g,'
')}
${$('sgstin').value?'GSTIN: '+esc($('sgstin').value):''}
${esc($('scontact').value)}
QUOTATION
Quotation no. ${esc($('number').value||'—')}
Date: ${esc($('date').value||'—')}

Prepared by

${esc($('seller').value||'Your Business Name')}
${esc($('saddress').value).replace(/\\n/g,'
')}

Prepared for

${esc($('buyer').value||'Customer name')}
${esc($('baddress').value).replace(/\\n/g,'
')}
${$('bgstin').value?'GSTIN: '+esc($('bgstin').value):''}
${esc($('bcontact').value)}

Valid until

${esc($('valid').value||'—')}

Place of supply

${esc($('place').value||'—')}

Tax type

${$('tax').value==='inter'?'Inter-state · IGST':'Intra-state · CGST + SGST'}
${rows}
DescriptionQtyRateGSTTaxable value
Estimated amount in words
${money(total)}
This quotation is an offer and is not a tax invoice.
${taxrows}
Subtotal${money(base)}
Discount (${dp.toFixed(2)}%)− ${money(discount)}
Taxable amount${money(taxable)}
Estimated total${money(total)}
${$('notes').value?`
Terms and notes
${esc($('notes').value)}
`:''}
Quotation prepared by ${esc($('seller').value||'')}
`} function download(){ render(); let e=[]; if(!$('seller').value.trim())e.push('Enter your business name.'); if(!$('buyer').value.trim())e.push('Enter the customer name.'); if(!$('number').value.trim())e.push('Enter a quotation number.'); if(!$('date').value)e.push('Choose a quotation date.'); if(!get().some(x=>x.d&&x.q>0))e.push('Add an item description and quantity greater than zero.'); let d=+$('discount').value; if(!Number.isFinite(d)||d<0||d>100)e.push('Discount must be between 0% and 100%.'); if(e.length){$('err').hidden=false;$('err').textContent=e.join(' ');$('err').scrollIntoView({behavior:'smooth',block:'center'});return} $('err').hidden=true; if(!window.jspdf||!window.jspdf.jsPDF){$('err').hidden=false;$('err').textContent='PDF library did not load. Check your internet connection and reload this page.';return} const {jsPDF}=window.jspdf,doc=new jsPDF({unit:'mm',format:'a4'}),left=15,right=195,width=180; let y=17; const text=(s,x,yy,opt={})=>doc.text(String(s??''),x,yy,opt); const pdfMoney=n=>'Rs. '+new Intl.NumberFormat('en-IN',{minimumFractionDigits:2,maximumFractionDigits:2}).format(Number(n)||0); const rule=(yy)=>{doc.setDrawColor(41,36,84);doc.setLineWidth(.45);doc.line(left,yy,right,yy)}; const line=(s,indent=0,size=9,bold=false)=>{doc.setFont('helvetica',bold?'bold':'normal');doc.setFontSize(size);let lines=doc.splitTextToSize(String(s||''),width-indent);for(let ln of lines){if(y>278){doc.addPage();y=18}text(ln,left+indent,y);y+=size*.48+1.5}}; const label=(s,x,yy)=>{doc.setFont('helvetica','bold');doc.setFontSize(7);doc.setTextColor(105,104,130);text(s.toUpperCase(),x,yy)}; doc.setTextColor(18,16,53);doc.setFont('helvetica','bold');doc.setFontSize(19);text(($('seller').value.trim()||'Your Business Name').slice(0,80),left,y); doc.setTextColor(193,36,144);doc.setFontSize(18);text('QUOTATION',right,y,{align:'right'});y+=7; doc.setTextColor(85,84,110);doc.setFont('helvetica','normal');doc.setFontSize(8); for(const v of [$('saddress').value,$('sgstin').value?'GSTIN: '+$('sgstin').value:'',$('scontact').value].filter(Boolean)){line(v,0,8); } y+=2;rule(y);y+=8; label('Prepared for',left,y);label('Quotation details',112,y);y+=5; doc.setTextColor(35,35,60);doc.setFont('helvetica','bold');doc.setFontSize(10);text($('buyer').value.trim(),left,y); doc.setFont('helvetica','normal');doc.setFontSize(8);text('No: '+$('number').value,112,y);y+=5; doc.setTextColor(90,89,115); let by=doc.splitTextToSize($('baddress').value||'',80);by.forEach(v=>{text(v,left,y);y+=4}); if($('bgstin').value){text('GSTIN: '+$('bgstin').value,left,y);y+=4} if($('bcontact').value){text($('bcontact').value,left,y);y+=4} text('Date: '+$('date').value,112,y-5);text('Valid until: '+($('valid').value||'—'),112,y);y+=7; label('Place of supply',left,y);label('Tax type',112,y);y+=5; doc.setTextColor(35,35,60);doc.setFontSize(8);text($('place').value||'—',left,y);text($('tax').value==='inter'?'Inter-state (IGST)':'Intra-state (CGST + SGST)',112,y);y+=8; const arr=get(),base=arr.reduce((s,x)=>s+x.q*x.r,0),dp=Math.min(100,Math.max(0,+$('discount').value||0)),discount=base*dp/100; let taxable=0,cg=0,sg=0,ig=0; const tx=arr.map(x=>{let baseLine=x.q*x.r,after=baseLine*(1-dp/100),tax=after*x.g/100;taxable+=after;if($('tax').value==='inter')ig+=tax;else{cg+=tax/2;sg+=tax/2}return {...x,baseLine,after}}); const col=[left,100,120,142,160, right], headers=['Description','Qty','Rate','GST','Taxable','']; doc.setFillColor(241,242,250);doc.rect(left,y-4,width,8,'F');doc.setTextColor(65,64,95);doc.setFont('helvetica','bold');doc.setFontSize(7); text('DESCRIPTION',left+2,y);text('QTY',100,y,{align:'right'});text('RATE',132,y,{align:'right'});text('GST',151,y,{align:'right'});text('TAXABLE VALUE',right-2,y,{align:'right'});y+=8; doc.setFont('helvetica','normal');doc.setFontSize(8);doc.setTextColor(35,35,60); for(const x of tx){ const desc=doc.splitTextToSize(x.d||'—',68); const needed=Math.max(7,desc.length*4+2); if(y+needed>265){doc.addPage();y=18} desc.forEach((v,i)=>text(v,left+2,y+i*4)); if(x.c){doc.setFontSize(6.5);doc.setTextColor(105,104,130);text('HSN/SAC: '+x.c,left+2,y+desc.length*4);doc.setFontSize(8);doc.setTextColor(35,35,60)} text(String(x.q),100,y,{align:'right'});text(pdfMoney(x.r),132,y,{align:'right'});text(x.g+'%',151,y,{align:'right'});text(pdfMoney(x.after),right-2,y,{align:'right'}); y+=needed;doc.setDrawColor(230,230,240);doc.line(left,y-2,right,y-2); } y+=4; let tax=$('tax').value==='inter'?[['IGST',ig]]:[['CGST',cg],['SGST',sg]]; const total=taxable+cg+sg+ig; const totals=[['Subtotal',base],['Discount ('+dp.toFixed(2)+'%)',-discount],['Taxable amount',taxable],...tax,['ESTIMATED TOTAL',total]]; const txStart=112; for(const [name,val] of totals){if(y>275){doc.addPage();y=18}let isTotal=name==='ESTIMATED TOTAL';doc.setFont('helvetica',isTotal?'bold':'normal');doc.setFontSize(isTotal?11:9);doc.setTextColor(isTotal?18:55,isTotal?16:54,isTotal?53:85);text(name,txStart,y);text((val<0?'− ':'')+pdfMoney(Math.abs(val)),right,y,{align:'right'});y+=isTotal?8:6} y+=2; if(y>265){doc.addPage();y=18} rule(y);y+=7;doc.setFont('helvetica','bold');doc.setFontSize(8);text('TERMS AND NOTES',left,y);y+=5; doc.setFont('helvetica','normal');doc.setFontSize(8);doc.setTextColor(70,69,95); const notes=$('notes').value||'This quotation is an offer and is not a tax invoice.'; const noteLines=doc.splitTextToSize(notes,width); for(const ln of noteLines){if(y>280){doc.addPage();y=18}text(ln,left,y);y+=4} doc.setFontSize(7);doc.setTextColor(125,124,145);text('Quotation prepared by '+($('seller').value||''),left,287); doc.save(($('number').value||'quotation').replace(/[^a-zA-Z0-9_-]/g,'_')+'.pdf'); } $('add').onclick=()=>add();$('pdf').onclick=download;$('pdf2').onclick=download;document.querySelectorAll('.qapp input,.qapp textarea,.qapp select').forEach(x=>x.addEventListener('input',render));$('reset').onclick=()=>{if(!confirm('Clear quotation and start over?'))return;document.querySelectorAll('.qapp input,.qapp textarea').forEach(x=>{if(x.id==='date')x.value=today;else if(x.id==='number')x.value='QT-'+now.getFullYear()+'-'+String(now.getMonth()+1).padStart(2,'0')+String(now.getDate()).padStart(2,'0')+'-001';else x.value=''});$('discount').value=0;$('tax').value='intra';tb.innerHTML='';add();$('err').hidden=true};add(); })();