{/* Navbar per WordPress */}
{/* VISTA CLIENT */}
{view === ‘client’ && (
{selectedId && materials.find(m => m.id === parseInt(selectedId))?.tipus === ‘area’ && (
)}
{/* VISTA ADMIN */}
{view === ‘admin’ && (
{showBulk && (
)}
)}
);
}
Calcula el teu Pressupost
setWidth(e.target.value)} className=”p-4 bg-gray-50 border border-gray-200 rounded-2xl” placeholder=”Amplada (cm)”/>
setHeight(e.target.value)} className=”p-4 bg-gray-50 border border-gray-200 rounded-2xl” placeholder=”Alçada (cm)”/>
)}
setQuantity(Math.max(1, parseInt(e.target.value) || 1))} className=”w-full p-4 bg-gray-50 border border-gray-200 rounded-2xl” placeholder=”Quantitat”/>
{calculateResult ? (
) : (
)}
Pressupost Professional
{calculateResult.nom}
{calculateResult.total}
€ (PVP)
Preu SENSE IVA{calculateResult.subtotalPVP} €
IVA (21%){calculateResult.iva} €
Total amb IVA{calculateResult.total} €
* Aquest pressupost és orientatiu i pot variar segons la complexitat de la instal·lació.
Selecciona un producte per començar.
Gestió de Productes
Importació Massiva (CSV)
Enganxa una línia per producte: Nom, tipus (area/unitat), costBase, marge
setForm({…form, nom: e.target.value})} placeholder=”Nom producte” className=”p-3 bg-gray-50 border border-gray-200 rounded-xl outline-none” />
setForm({…form, costBase: e.target.value})} placeholder=”Cost base (€)” className=”p-3 bg-gray-50 border border-gray-200 rounded-xl outline-none” />
setForm({…form, marge: e.target.value})} placeholder=”Marge (%)” className=”p-3 bg-gray-50 border border-gray-200 rounded-xl outline-none” />
| Producte | Tipus | Cost Base | Marge | PVP/u | Accions |
|---|---|---|---|---|---|
| {m.nom} | {m.tipus} | {m.costBase}€ | +{m.marge}% | {(m.costBase * (1 + m.marge / 100)).toFixed(2)}€ |
