untitled

Pasted Nov 10, 2026, 7:27 PM1 file37 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgs84asna7vh7px
untitled
  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