sonicsoftware.in

Invoice Generator — Create Bill Online

Try SonicBillX free invoice generator to create professional bills in seconds and manage your finances without extra cost.!

Quickly generate professional invoices online — Invoice Generator

📄
Enter Details
🔍
Preview


#ItemQuantityUnitRateItem GST %Amount
10.00

Total: 0.00

Add your company's logo (100×80 px)

`);win.document.close(); setTimeout(() => win.print(), 400); }function downloadInvoice(){const invoice = document.getElementById('previewHTML');if (!invoice || invoice.innerHTML.trim() === '') { alert('Please generate preview first'); return; }const invoiceNo = document.getElementById('invoiceNo')?.value || 'invoice';html2pdf() .from(invoice) .set({ margin: 15, filename: `invoice-${invoiceNo}.pdf`, image: { type: 'jpeg', quality: 0.98 }, html2canvas: { scale: 2, useCORS: true, scrollY: 0 }, jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' } }) .save(); }/* Init */ window.addEventListener('load', function(){ // hide buttons until preview created if(document.getElementById('btnDownload')) document.getElementById('btnDownload').classList.add('hidden'); if(document.getElementById('btnPrint')) document.getElementById('btnPrint').classList.add('hidden');// clear inputs for fresh start (no persistence) const idsToClear = ['companyName','companyAddress','companyGST','invoiceNo','customerName','customerAddress','notes','terms']; idsToClear.forEach(id => { const el = document.getElementById(id); if(el) el.value = ''; });// set default dates const dateEl = document.getElementById('invoiceDate'); const dueEl = document.getElementById('dueDate'); if(dateEl) dateEl.value = '2026-01-15'; // if(dueEl) dueEl.value = '2026-01-22'; // default single row (with placeholders) const tbody = document.getElementById('itemBody'); tbody.innerHTML = `10.00`;document.querySelectorAll('#itemBody tr').forEach(tr => attachInputHandlers(tr)); recalc(); toggleGST(); });
Scroll to Top