Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs84asna7vh7pxuntitledPlain Text
onEliminarGasto = { gastoId, loteId ->
scope.launch {
productoDao.eliminarGastoLote(
gastoId = gastoId,
loteId = loteId
)
}
},
onAgregarGasto = { gasto ->
scope.launch {
productoDao.guardarGastosLote(
listOf(gasto)
)
}
},
onEditarProduccion = { loteId, detalles, inventarios, onResultado ->
scope.launch {
try {
productoDao.editarLoteCompleto(
loteId = loteId,
detallesNuevos = detalles,
inventariosLoteNuevos = inventarios
)
onResultado(null)
} catch (e: Exception) {
onResultado(
e.message ?: "No se pudo editar la producción."
)
}
}
},
onVolver = {
selectedTab = "Inicio"
}
)1,366 chars · codepastes.com