Plaster Patch — Instant Wall Repair Quote Calculator (Melbourne) Scope of Work & Quote Incl. GST Excl. GST
Subtotal (Excl. GST) $0.00
GST (10%) $0.00
Estimated Total (Incl. GST) $0.00
Included at No Extra Cost
Commercial HEPA Dust Extraction Drop Sheets & Full Clean-Up Single-Visit Turnaround (where conditions allow)Key Considerations & Assumptions: Photo Confirmation: This calculator provides an accurate 2026 Melbourne estimate. A quick photo via SMS or email is required to confirm a final fixed price.Colour Matching: If painting is selected, providing the original paint tin or colour code ensures the closest blend. Spot touch-ups may show minor sheen variation in angled light; corner-to-corner wall painting is recommended for a seamless finish.Curing & Drying Times: Rapid-setting trade compounds allow most repairs to be completed in a single visit. Large patches or high-humidity conditions may require a brief return visit for final coats.+ Math.abs(amount).toFixed(2); } function getSelectedRepair() { return PRICING_CONFIG.repairTypes.find(r => r.id === state.repairId) || PRICING_CONFIG.repairTypes[0]; } function getSelectedPaint() { return PRICING_CONFIG.paintOptions.find(p => p.id === state.paintId) || PRICING_CONFIG.paintOptions[0]; } /* ======================================================================== RENDER STATIC SELECTOR CARDS ======================================================================== */ function renderRepairCards() { els.repairGrid.innerHTML = PRICING_CONFIG.repairTypes.map(item => { const isSelected = item.id === state.repairId; const spanClass = item.fullSpan ? ' pp-full-span' : ''; return `
${item.icon}
${item.name} From ${item.basePrice}
${item.subtitle}
`; }).join(''); } function renderPaintCards() { els.paintList.innerHTML = PRICING_CONFIG.paintOptions.map(opt => { const isSelected = opt.id === state.paintId; const totalAdd = opt.sealerCost + opt.paintCost; const priceText = totalAdd === 0 ? '+$0' : `+${totalAdd}`; return `
${opt.name} ${priceText}
${opt.desc}
${opt.note && isSelected ? `
${opt.note}
` : ''}
`; }).join(''); } /* ======================================================================== CALCULATION ENGINE ======================================================================== */ function calculateQuote() { const repair = getSelectedRepair(); const paint = getSelectedPaint(); const qty = state.qty; // Core per-patch costs const prepTotal = repair.prepCost * qty; const flushTotal = repair.flushCost * qty; const sealerTotal = paint.sealerCost * qty; const paintTotal = paint.paintCost * qty; // Multi-patch discount: 30% off each additional patch's base repair + finishing const singlePatchCore = repair.basePrice + paint.sealerCost + paint.paintCost; const discountAmount = qty > 1 ? Math.round((singlePatchCore * (qty - 1) * PRICING_CONFIG.multiPatchDiscount) * 100) / 100 : 0; // One-off visit add-ons const accessAddon = PRICING_CONFIG.addons.access[state.access]; const wallAddon = PRICING_CONFIG.addons.wallType[state.wallType]; const urgencyAddon = PRICING_CONFIG.addons.urgency[state.urgency]; const supplyAddon = paint.allowSupply ? PRICING_CONFIG.addons.paintSupply[state.paintSupply] : PRICING_CONFIG.addons.paintSupply.client; const subtotalExcl = prepTotal + flushTotal + sealerTotal + paintTotal - discountAmount + accessAddon.price + wallAddon.price + urgencyAddon.price + supplyAddon.price; const gstAmount = subtotalExcl * PRICING_CONFIG.gstRate; const totalIncl = subtotalExcl + gstAmount; // Build structured line items const items = [ { title: `Preparation & Demolition${qty > 1 ? ` (×${qty})` : ''}`, desc: repair.prepDesc, price: prepTotal }, { title: `Plasterboard Installation & Flushing${qty > 1 ? ` (×${qty})` : ''}`, desc: repair.flushDesc, price: flushTotal }, { title: paint.sealerCost > 0 ? `HEPA Sanding & Drywall Sealer/Primer${qty > 1 ? ` (×${qty})` : ''}` : 'Precision HEPA Dust-Free Sanding', desc: paint.sealerCost > 0 ? 'Dust-free sanding to Level 4/5 finish + 1 coat drywall sealer/primer.' : 'Commercial HEPA dust-extracted sanding to a smooth paint-ready finish.', price: sealerTotal, isIncludedBadge: paint.sealerCost === 0 } ]; if (paint.paintCost > 0) { items.push({ title: `${paint.id === 'fullwall' ? 'Finishing Coats (Full Wall)' : 'Finishing Coats (Spot-Blend)'}${qty > 1 ? ` (×${qty})` : ''}`, desc: paint.id === 'fullwall' ? '2 coats premium low-sheen wall paint corner-to-corner/architrave.' : '2 coats matching low-sheen paint feathered over repaired area.', price: paintTotal }); } if (supplyAddon.price > 0) { items.push({ title: 'Paint Supply & Colour Match', desc: 'Supply up to 2L of tinted premium low-sheen interior wall paint.', price: supplyAddon.price }); } if (accessAddon.price > 0) { items.push({ title: 'High Wall / Ladder Access', desc: 'Stairwell or high-reach setup (2.7m–3.6m).', price: accessAddon.price }); } if (wallAddon.price > 0) { items.push({ title: 'Heritage Lath & Plaster', desc: 'Specialist bonding & prep for period lath/horsehair plaster.', price: wallAddon.price }); } if (urgencyAddon.price > 0) { items.push({ title: 'Priority / Same-Week Rush', desc: 'Fast-tracked scheduling subject to availability.', price: urgencyAddon.price }); } if (discountAmount > 0) { items.push({ title: `Multi-Patch Visit Discount (${Math.round(PRICING_CONFIG.multiPatchDiscount * 100)}% off extra patches)`, desc: `Same-visit savings applied across ${qty - 1} additional patch${qty - 1 > 1 ? 'es' : ''}.`, price: -discountAmount, isDiscount: true }); } return { repair, paint, items, subtotalExcl, gstAmount, totalIncl }; } /* ======================================================================== FORMAT PLAIN-TEXT QUOTE FOR SMS / EMAIL / COPY ======================================================================== */ function buildPlainTextQuote(quote) { const name = els.leadName.value.trim(); const suburb = els.leadSuburb.value.trim(); const contact = els.leadContact.value.trim(); const notes = els.leadNotes.value.trim(); const lines = [ `PLASTER PATCH — QUOTE ESTIMATE`, `Repair: ${quote.repair.name} (Qty: ${state.qty})`, `Finishing: ${quote.paint.name}`, `--------------------------------` ]; quote.items.forEach(item => { const priceStr = item.isIncludedBadge ? 'Included' : formatAUD(item.price); lines.push(`• ${item.title}: ${priceStr}`); }); lines.push(`--------------------------------`); lines.push(`Subtotal (Excl. GST): ${formatAUD(quote.subtotalExcl)}`); lines.push(`GST (10%): ${formatAUD(quote.gstAmount)}`); lines.push(`Estimated Total (Incl. GST): ${formatAUD(quote.totalIncl)}`); if (name || suburb || contact || notes) { lines.push(``); lines.push(`CLIENT DETAILS:`); if (name) lines.push(`Name: ${name}`); if (suburb) lines.push(`Suburb: ${suburb}`); if (contact) lines.push(`Contact: ${contact}`); if (notes) lines.push(`Notes: ${notes}`); } lines.push(``); lines.push(`(Estimate generated via Plaster Patch Calculator — photo confirmation required for fixed quote.)`); return lines.join('\n'); } /* ======================================================================== UPDATE UI ======================================================================== */ function updateUI() { const quote = calculateQuote(); // Update Quantity Stepper els.qtyVal.textContent = String(state.qty); els.qtyMinus.disabled = state.qty <= 1; els.qtyPlus.disabled = state.qty >= PRICING_CONFIG.maxPatches; // Show/hide conditional paint supply toggle if (quote.paint.allowSupply) { els.paintSupplyBox.classList.remove('pp-hidden'); } else { els.paintSupplyBox.classList.add('pp-hidden'); } // Render itemized list els.lineItems.innerHTML = quote.items.map(item => `
${item.title}
${item.desc}
${item.isIncludedBadge ? 'Included ' : formatAUD(item.price)}
`).join(''); // Render totals els.subtotalExcl.textContent = formatAUD(quote.subtotalExcl); els.gstAmount.textContent = formatAUD(quote.gstAmount); if (state.showInclGst) { els.mainTotalLabel.textContent = 'Estimated Total (Incl. GST)'; els.mainTotalVal.textContent = formatAUD(quote.totalIncl); } else { els.mainTotalLabel.textContent = 'Estimated Total (Excl. GST)'; els.mainTotalVal.textContent = formatAUD(quote.subtotalExcl); } // Update SMS & Email links dynamically const plainText = buildPlainTextQuote(quote); const encodedBody = encodeURIComponent(plainText); const suburbTag = els.leadSuburb.value.trim() ? ` - ${els.leadSuburb.value.trim()}` : ''; const emailSubject = encodeURIComponent(`Plaster Patch Quote Request${suburbTag} (${formatAUD(quote.totalIncl)} incl. GST)`); els.btnSms.href = `sms:${PRICING_CONFIG.phone}?body=${encodedBody}`; els.btnEmail.href = `mailto:${PRICING_CONFIG.email}?subject=${emailSubject}&body=${encodedBody}`; } /* ======================================================================== EVENT LISTENERS ======================================================================== */ // Repair type selection els.repairGrid.addEventListener('click', (e) => { const btn = e.target.closest('[data-repair-id]'); if (!btn) return; state.repairId = btn.getAttribute('data-repair-id'); renderRepairCards(); updateUI(); }); // Quantity stepper els.qtyMinus.addEventListener('click', () => { if (state.qty > 1) { state.qty--; updateUI(); } }); els.qtyPlus.addEventListener('click', () => { if (state.qty < PRICING_CONFIG.maxPatches) { state.qty++; updateUI(); } }); // Segmented toggles (access, wallType, urgency, paintSupply) document.getElementById('ppCalcApp').addEventListener('click', (e) => { const segBtn = e.target.closest('.pp-seg-btn'); if (!segBtn) return; const group = segBtn.getAttribute('data-group'); const value = segBtn.getAttribute('data-value'); if (!group || !value) return; state[group] = value; // Update active state within the same group const siblings = segBtn.parentElement.querySelectorAll('.pp-seg-btn'); siblings.forEach(s => s.classList.toggle('is-selected', s === segBtn)); updateUI(); }); // Painting options (click + keyboard Enter/Space) function selectPaintCard(target) { const card = target.closest('[data-paint-id]'); if (!card) return; state.paintId = card.getAttribute('data-paint-id'); renderPaintCards(); updateUI(); } els.paintList.addEventListener('click', (e) => selectPaintCard(e.target)); els.paintList.addEventListener('keydown', (e) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); selectPaintCard(e.target); } }); // GST Display Toggle els.showInclGst.addEventListener('click', () => { state.showInclGst = true; els.showInclGst.classList.add('is-active'); els.showExclGst.classList.remove('is-active'); updateUI(); }); els.showExclGst.addEventListener('click', () => { state.showInclGst = false; els.showExclGst.classList.add('is-active'); els.showInclGst.classList.remove('is-active'); updateUI(); }); // Update SMS/Email links when lead inputs change [els.leadName, els.leadSuburb, els.leadContact, els.leadNotes].forEach(input => { input.addEventListener('input', updateUI); }); // Copy Quote to Clipboard (iframe-safe using execCommand) els.btnCopy.addEventListener('click', () => { try { const quote = calculateQuote(); const text = buildPlainTextQuote(quote); const tempTextarea = document.createElement('textarea'); tempTextarea.value = text; tempTextarea.setAttribute('readonly', ''); tempTextarea.style.position = 'fixed'; tempTextarea.style.left = '-9999px'; document.body.appendChild(tempTextarea); tempTextarea.select(); document.execCommand('copy'); document.body.removeChild(tempTextarea); els.btnCopy.classList.add('is-copied'); els.copyLabel.textContent = 'Copied!'; setTimeout(() => { els.btnCopy.classList.remove('is-copied'); els.copyLabel.textContent = 'Copy Quote'; }, 2200); } catch (err) { els.copyLabel.textContent = 'Copy Failed'; setTimeout(() => { els.copyLabel.textContent = 'Copy Quote'; }, 2200); } }); / Save PDF els.btnPrint.addEventListener('click', () => { window.print(); }); /* ======================================================================== INITIALIZE ======================================================================== */ renderRepairCards(); renderPaintCards(); updateUI(); })(); // Print