Calculadora de escandallo Gratis
I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.
Calculadora de Escandallo
Ingredientes
0 ingredientes
Listo
| Sel. | Artículo | C. Bruta | C. Neta | Factor Cost | Ud. Consumo | Ud. Compra | PVP Compra | Factor | Precio Real Compra | Precio Real | Costo | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Coste total receta | € 0,00 | |||||||||||
FACTOR COST = C. BRUTA / C. NETA · PRECIO REAL COMPRA = FACTOR COST × PVP COMPRA × UD. COMPRA · COSTO = (C. NETA × PRECIO REAL) / FACTOR.
Parámetros del plato
Resultados (por ración)
Coste por ración
€ 0,00
Precio actual (neto / bruto)
€ 0,00 / € 0,00
Food Cost real
0,0 %
Precio ideal teórico (neto / bruto)
€ 0,00 / 0,00
Diferencia vs precio actual
€ 0,00
Margen contribución NETO (€ / %)
€ 0,00 / 0,0 %
Escandallo — ' + nombre + '
'; html += '' + fecha;
if (autor) html += ' · ' + autor;
html += '
';
html += '| Artículo | C.Bruta | C.Neta | '; html += 'F.Cost | U.Cons | U.Comp | '; html += 'PVP | Factor | P.R.Comp | '; html += 'P.Real | Costo | '; html += '
|---|---|---|---|---|---|---|---|---|---|---|
| Total | '; html += '' + nf(total) + ' | |||||||||
';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '';
html += '
';
if (isMobile) {
html += 'Coste por ración
' + nf(cr) + '
Precio actual (neto/bruto)
' + nf(neto) + '/' + nf(bruto) + '
Food Cost real
' + (fcReal * 100).toFixed(1) + '%
Precio ideal (neto/bruto)
' + nf(idealNeto) + '/' + nf(idealBruto) + '
Diferencia
' + (dif >= 0 ? '+' : '') + nf(dif) + '
Margen NETO
' + nf(mc) + '/' + (mcPct * 100).toFixed(1) + '%
';
html += '📱 Desde móvil: Usa el menú para Compartir o Imprimir este documento.';
html += '
';
}
html += '';
if (isMobile) {
var blob = new Blob([html], {type: 'text/html'});
var a = document.createElement('a');
a.href = URL.createObjectURL(blob);
a.download = 'escandallo-' + nombre.replace(/\s+/g, '_') + '-' + fecha + '.html';
a.click();
URL.revokeObjectURL(a.href);
} else {
var printWindow = window.open('', '_blank');
if (!printWindow) {
alert('El navegador bloqueó la ventana emergente. Por favor, activa las ventanas emergentes para esta página.');
return;
}
printWindow.document.open();
printWindow.document.write(html);
printWindow.document.close();
setTimeout(function() {
printWindow.focus();
printWindow.print();
}, 250);
}
});
// ============================================
// INICIALIZACIÓN
// ============================================
// Establecer fecha actual
try {
var d = new Date();
var tz = new Date(d.getTime() - d.getTimezoneOffset() * 60000);
if (!fechaRecetaInput.value) {
fechaRecetaInput.value = tz.toISOString().slice(0, 10);
}
} catch (e) {
console.log('Error al establecer fecha');
}
// Restaurar estado guardado
restore();
// CRÍTICO: Añadir primera fila si no hay ninguna
if (tbody.querySelectorAll('tr').length === 0) {
addRow();
}
// Recalcular inicial
recalc();
})();
