untitled

Pasted Nov 9, 2026, 3:22 AM1 file123 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/zzgs9cxe6zwe7eac
untitled

package com.negocio.desinfectantes.data

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "lotes_produccion")
data class LoteProduccionEntity(

    @PrimaryKey
    val id: String,

    val productoId: String,

    val aromaId: String,

    @ColumnInfo(defaultValue = "''")
    val numeroLote: String = "",

    val fechaCreacion: Long = System.currentTimeMillis()
)

package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "lotes_detalle")
data class LoteDetalleEntity(

    @PrimaryKey
    val id: String,

    val loteId: String,

    val presentacionId: String,

    val cantidadFabricada: Int
)

package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "lotes_gastos")
data class LoteGastoEntity(

    @PrimaryKey
    val id: String,

    val loteId: String,

    val concepto: String,

    val monto: Double,

    val observacion: String? = null,

    val fechaCreacion: Long = System.currentTimeMillis()
)


package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "lotes_inventario")
data class LoteInventarioEntity(

    @PrimaryKey
    val id: String,

    val loteId: String,

    val presentacionId: String,

    val sede: String,

    val cantidadDisponible: Int = 0,

    val cantidadReservada: Int = 0
)

package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "lotes_ventas")
data class LoteVentaEntity(

    @PrimaryKey
    val id: String,

    val ventaId: String,

    val detalleVentaId: String,

    val loteInventarioId: String,

    val cantidad: Int,

    val estado: String
)

package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "control_numeracion_lotes")
data class ControlNumeracionLotesEntity(
    @PrimaryKey
    val id: Int = 1,

    val ultimoNumero: Int = 0
)


2,091 chars · codepastes.com